asterix-graphix/src/main/java/org/apache/asterix/graphix/lang/rewrite/GraphixQueryRewriter.java [109:119]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        GraphixRewritingContext graphixRewritingContext = (GraphixRewritingContext) langRewritingContext;
        topStatement.accept(new PreRewriteCheckVisitor(graphixRewritingContext), null);

        // Perform the Graphix rewrites.
        rewriteGraphixASTNodes(graphixRewritingContext, topStatement, allowNonStoredUDFCalls);

        // Sanity check: ensure that no graph AST nodes exist after this point.
        Map<String, Object> queryConfig = graphixRewritingContext.getMetadataProvider().getConfig();
        if (queryConfig.containsKey(CompilerProperties.COMPILER_INTERNAL_SANITYCHECK_KEY)) {
            String configValue = (String) queryConfig.get(CompilerProperties.COMPILER_INTERNAL_SANITYCHECK_KEY);
            if (!configValue.equalsIgnoreCase("false")) {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



asterix-graphix/src/main/java/org/apache/asterix/graphix/lang/rewrite/GraphixQueryRewriter.java [286:296]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                GraphixRewritingContext graphixRewritingContext = (GraphixRewritingContext) langRewritingContext;
                topStatement.accept(new PreRewriteCheckVisitor(graphixRewritingContext), null);

                // Perform the Graphix rewrites.
                rewriteGraphixASTNodes(graphixRewritingContext, topStatement, allowNonStoredUDFCalls);

                // Sanity check: ensure that no graph AST nodes exist after this point.
                Map<String, Object> queryConfig = graphixRewritingContext.getMetadataProvider().getConfig();
                if (queryConfig.containsKey(CompilerProperties.COMPILER_INTERNAL_SANITYCHECK_KEY)) {
                    String configValue = (String) queryConfig.get(CompilerProperties.COMPILER_INTERNAL_SANITYCHECK_KEY);
                    if (!configValue.equalsIgnoreCase("false")) {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



