Search in sources :

Example 1 with ASTSearcher

use of org.apache.hadoop.hive.ql.parse.CalcitePlanner.ASTSearcher in project hive by apache.

the class ParseUtils method handleSetColRefs.

private static void handleSetColRefs(ASTNode tree) {
    CalcitePlanner.ASTSearcher astSearcher = new CalcitePlanner.ASTSearcher();
    while (true) {
        astSearcher.reset();
        ASTNode setCols = astSearcher.depthFirstSearch(tree, HiveParser.TOK_SETCOLREF);
        if (setCols == null)
            break;
        processSetColsNode(setCols, astSearcher);
    }
}
Also used : ASTSearcher(org.apache.hadoop.hive.ql.parse.CalcitePlanner.ASTSearcher) ASTSearcher(org.apache.hadoop.hive.ql.parse.CalcitePlanner.ASTSearcher)

Aggregations

ASTSearcher (org.apache.hadoop.hive.ql.parse.CalcitePlanner.ASTSearcher)1