Search in sources :

Example 6 with SemanticAnalyzer

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

the class QTestUtil method resetParser.

public void resetParser() throws SemanticException {
    drv.init();
    pd = new ParseDriver();
    queryState = new QueryState(conf);
    sem = new SemanticAnalyzer(queryState);
}
Also used : ParseDriver(org.apache.hadoop.hive.ql.parse.ParseDriver) SemanticAnalyzer(org.apache.hadoop.hive.ql.parse.SemanticAnalyzer) BaseSemanticAnalyzer(org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer)

Example 7 with SemanticAnalyzer

use of org.apache.hadoop.hive.ql.parse.SemanticAnalyzer in project phoenix by apache.

the class HiveTestUtil method resetParser.

public void resetParser() throws SemanticException {
    pd = new ParseDriver();
    sem = new SemanticAnalyzer(conf);
}
Also used : ParseDriver(org.apache.hadoop.hive.ql.parse.ParseDriver) SemanticAnalyzer(org.apache.hadoop.hive.ql.parse.SemanticAnalyzer) BaseSemanticAnalyzer(org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer)

Aggregations

BaseSemanticAnalyzer (org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer)7 SemanticAnalyzer (org.apache.hadoop.hive.ql.parse.SemanticAnalyzer)7 ParseDriver (org.apache.hadoop.hive.ql.parse.ParseDriver)4 ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2 LinkedHashMap (java.util.LinkedHashMap)2 Partition (org.apache.hadoop.hive.ql.metadata.Partition)2 Table (org.apache.hadoop.hive.ql.metadata.Table)2 ImportSemanticAnalyzer (org.apache.hadoop.hive.ql.parse.ImportSemanticAnalyzer)2 ParseContext (org.apache.hadoop.hive.ql.parse.ParseContext)2 PrunedPartitionList (org.apache.hadoop.hive.ql.parse.PrunedPartitionList)2 ImmutableMap (com.google.common.collect.ImmutableMap)1 IOException (java.io.IOException)1 HashSet (java.util.HashSet)1 LinkedHashSet (java.util.LinkedHashSet)1 LinkedList (java.util.LinkedList)1 List (java.util.List)1 Map (java.util.Map)1 CliDriver (org.apache.hadoop.hive.cli.CliDriver)1 ValidTxnList (org.apache.hadoop.hive.common.ValidTxnList)1