Search in sources :

Example 1 with LogicalTableSink

use of com.hazelcast.jet.sql.impl.opt.logical.LogicalTableSink in project hazelcast by hazelcast.

the class HazelcastSqlToRelConverter method convertInsert.

@Override
protected RelNode convertInsert(SqlInsert insert0) {
    SqlExtendedInsert insert = (SqlExtendedInsert) insert0;
    TableModify modify = (TableModify) super.convertInsert(insert);
    return insert.isInsert() ? new LogicalTableInsert(modify) : new LogicalTableSink(modify);
}
Also used : LogicalTableInsert(com.hazelcast.jet.sql.impl.opt.logical.LogicalTableInsert) LogicalTableSink(com.hazelcast.jet.sql.impl.opt.logical.LogicalTableSink) SqlExtendedInsert(com.hazelcast.jet.sql.impl.parse.SqlExtendedInsert) TableModify(org.apache.calcite.rel.core.TableModify)

Aggregations

LogicalTableInsert (com.hazelcast.jet.sql.impl.opt.logical.LogicalTableInsert)1 LogicalTableSink (com.hazelcast.jet.sql.impl.opt.logical.LogicalTableSink)1 SqlExtendedInsert (com.hazelcast.jet.sql.impl.parse.SqlExtendedInsert)1 TableModify (org.apache.calcite.rel.core.TableModify)1