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);
}
Aggregations