public Driver(HiveConf conf, Context ctx) { this(new QueryState(conf), null); this.ctx = ctx; }
public Driver(HiveConf conf, String userName) { this(new QueryState(conf), userName); }
public Driver(HiveConf conf) { this(new QueryState(conf), null); }
/** * Resets QueryState to get new queryId on Driver reuse. */ public void resetQueryState() { // Note: Driver cleanup for reuse at this point is not very clear. The assumption here is that // repeated compile/execute calls create new contexts, plan, etc., so we don't need to worry // propagating queryState into those existing fields, or resetting them. releaseResources(); this.queryState = new QueryState(queryState.getConf()); } }
QueryState queryState = new QueryState(queryConf); if (lineageState != null) { queryState.setLineageState(lineageState);
public Driver() { this(new QueryState((SessionState.get() != null) ? SessionState.get().getConf() : new HiveConf()), null); }
QueryState queryState = new QueryState(new HiveConf(conf, PartialScanTask.class)); PartialScanWork mergeWork = new PartialScanWork(inputPaths); DriverContext driverCxt = new DriverContext();
BaseSemanticAnalyzer baseSem = SemanticAnalyzerFactory.get(new QueryState(conf), tree); ColumnStatsSemanticAnalyzer colSem = (ColumnStatsSemanticAnalyzer) baseSem; baseSem = SemanticAnalyzerFactory.get(new QueryState(conf), ast); SemanticAnalyzer sem = (SemanticAnalyzer) baseSem; QB qb = new QB(null, null, false);
private static RelNode parseQuery(String viewQuery) { try { final ASTNode node = ParseUtils.parse(viewQuery); final QueryState qs = new QueryState(SessionState.get().getConf()); CalcitePlanner analyzer = new CalcitePlanner(qs); analyzer.initCtx(new Context(SessionState.get().getConf())); analyzer.init(false); return analyzer.genLogicalPlan(node); } catch (Exception e) { // We could not parse the view return null; } }
d = new Driver(new QueryState(hiveConf), null); d.setMaxRows(10000);
public CubeSemanticAnalyzer(Configuration queryConf, HiveConf hiveConf) throws SemanticException { super(new QueryState(hiveConf)); setupRules(); }
public CubeSemanticAnalyzer(Configuration queryConf, HiveConf hiveConf) throws SemanticException { super(new QueryState(hiveConf)); setupRules(); }