Search in sources :

Example 1 with CreateViewPlan

use of com.hazelcast.jet.sql.impl.SqlPlanImpl.CreateViewPlan in project hazelcast by hazelcast.

the class CalciteSqlOptimizer method toCreateViewPlan.

private SqlPlan toCreateViewPlan(PlanKey planKey, OptimizerContext context, SqlCreateView sqlNode) {
    SqlString sqlString = sqlNode.getQuery().toSqlString(PostgresqlSqlDialect.DEFAULT);
    String sql = sqlString.getSql();
    boolean replace = sqlNode.getReplace();
    boolean ifNotExists = sqlNode.ifNotExists;
    return new CreateViewPlan(planKey, context, sqlNode.name(), sql, sqlNode.isStream(), replace, ifNotExists, planExecutor);
}
Also used : CreateViewPlan(com.hazelcast.jet.sql.impl.SqlPlanImpl.CreateViewPlan) SqlString(org.apache.calcite.sql.util.SqlString) SqlString(org.apache.calcite.sql.util.SqlString)

Aggregations

CreateViewPlan (com.hazelcast.jet.sql.impl.SqlPlanImpl.CreateViewPlan)1 SqlString (org.apache.calcite.sql.util.SqlString)1