beyond1920 commented on a change in pull request #8035: 
[FLINK-11975][table-planner-blink] Support to run a sql query : 'SELECT * FROM 
(VALUES (1, 2, 3)) T(a, b, c)'
URL: https://github.com/apache/flink/pull/8035#discussion_r268932403
 
 

 ##########
 File path: 
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/plan/nodes/physical/batch/BatchExecSink.scala
 ##########
 @@ -36,10 +46,99 @@ class BatchExecSink[T](
     sink: TableSink[T],
     sinkName: String)
   extends Sink(cluster, traitSet, inputRel, sink, sinkName)
-  with BatchPhysicalRel {
+  with BatchPhysicalRel
+  with BatchExecNode[Any] {
 
   override def copy(traitSet: RelTraitSet, inputs: util.List[RelNode]): 
RelNode = {
     new BatchExecSink(cluster, traitSet, inputs.get(0), sink, sinkName)
   }
 
+  /**
+    * Returns [[DamBehavior]] of this node.
+    */
+  override def getDamBehavior: DamBehavior = DamBehavior.PIPELINED
 
 Review comment:
   DamBehavior of sink is never used actually, so it's value will not effect 
schedule or deadlock breaking. However, Full_DAM is  a more appropriate choice 
in this point of view, I will update it.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to