Class DeletePushDownUtils
java.lang.Object
org.apache.flink.table.planner.operations.DeletePushDownUtils
A utility class for delete push down.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<org.apache.flink.table.connector.sink.DynamicTableSink>getDynamicTableSink(org.apache.flink.table.catalog.ContextResolvedTable contextResolvedTable, org.apache.calcite.rel.logical.LogicalTableModify tableModify) Get theDynamicTableSinkfor the table to be modified.getResolvedFilterExpressions(org.apache.calcite.rel.logical.LogicalTableModify tableModify) Get the resolved filter expressions from theWHEREclause in DELETE statement, return Optional.empty() ifWHEREclause contains sub-query.
-
Constructor Details
-
DeletePushDownUtils
public DeletePushDownUtils()
-
-
Method Details
-
getDynamicTableSink
public static Optional<org.apache.flink.table.connector.sink.DynamicTableSink> getDynamicTableSink(org.apache.flink.table.catalog.ContextResolvedTable contextResolvedTable, org.apache.calcite.rel.logical.LogicalTableModify tableModify) Get theDynamicTableSinkfor the table to be modified. Return Optional.empty() if it can't get theDynamicTableSink. -
getResolvedFilterExpressions
public static Optional<List<org.apache.flink.table.expressions.ResolvedExpression>> getResolvedFilterExpressions(org.apache.calcite.rel.logical.LogicalTableModify tableModify) Get the resolved filter expressions from theWHEREclause in DELETE statement, return Optional.empty() ifWHEREclause contains sub-query.
-