public SqlHandlerConfig cloneWithNewObserver(AttemptObserver replacementObserver){ return new SqlHandlerConfig(this.context, this.converter, replacementObserver, this.materializations); }
public ExplainHandler(SqlHandlerConfig config) { super(); this.config = new SqlHandlerConfig(config.getContext(), config.getConverter(), config.getObserver(), config.getMaterializations().orNull()); }
final SqlHandlerConfig config = new SqlHandlerConfig(context, converter, observer, null); NormalHandler handler = new NormalHandler(); PhysicalPlan pp = handler.getPlan(config, query.getSql(), sqlNode);
queryContext.getScanResult()); final SqlNode node = converter.parse(sql); final SqlHandlerConfig config = new SqlHandlerConfig(queryContext, converter, observer, null);
protected ElasticsearchGroupScan generate(String sql) throws Exception { AttemptObserver observer = new PassthroughQueryObserver(ExecTest.mockUserClientConnection(null)); SqlConverter converter = new SqlConverter(context.getPlannerSettings(), context.getOperatorTable(), context, context.getMaterializationProvider(), context.getFunctionRegistry(), context.getSession(), observer, context.getCatalog(), context.getSubstitutionProviderFactory(), context.getConfig(), context.getScanResult()); SqlNode node = converter.parse(sql); SqlHandlerConfig config = new SqlHandlerConfig(context, converter, observer, null); NormalHandler handler = new NormalHandler(); PhysicalPlan plan = handler.getPlan(config, sql, node); List<PhysicalOperator> operators = plan.getSortedOperators(); ElasticsearchGroupScan scan = find(operators); assertNotNull("Physical plan does not contain an elasticsearch scan for query: " + sql, scan); return scan; }
queryContext.getScanResult()); final SqlNode node = converter.parse(sql); final SqlHandlerConfig config = new SqlHandlerConfig(queryContext, converter, observer, null);
final Catalog catalog = context.getCatalog(); final SqlNode sqlNode = parser.parse(sql); final SqlHandlerConfig config = new SqlHandlerConfig(context, parser, observer, parser.getMaterializations());