use of io.crate.analyze.SelectAnalyzedStatement in project crate by crate.
the class SubqueryPlanner method planSubquery.
private void planSubquery(SelectSymbol selectSymbol) {
AnalyzedRelation relation = selectSymbol.relation();
SelectAnalyzedStatement selectAnalyzedStatement = new SelectAnalyzedStatement(((QueriedRelation) relation));
Plan subPlan = plannerContext.planSingleRowSubselect(selectAnalyzedStatement);
subQueries.put(subPlan, selectSymbol);
}
use of io.crate.analyze.SelectAnalyzedStatement in project crate by crate.
the class RelationAnalyzerTest method testColumnNameFromArrayComparisonExpression.
@Test
public void testColumnNameFromArrayComparisonExpression() throws Exception {
SelectAnalyzedStatement statement = executor.analyze("select 'foo' = any(constraint_name) " + "from information_schema.table_constraints");
assertThat(statement.relation().fields().get(0).path().outputName(), is("'foo' = ANY(constraint_name)"));
}
use of io.crate.analyze.SelectAnalyzedStatement in project crate by crate.
the class MultiSourceFetchPushDownTest method pushDown.
private void pushDown(String stmt) {
SelectAnalyzedStatement a = e.analyze(stmt);
assertThat(a.relation(), instanceOf(MultiSourceSelect.class));
mss = (MultiSourceSelect) a.relation();
pd = new MultiSourceFetchPushDown(mss);
pd.process();
}
Aggregations