danny0405 commented on a change in pull request #13577:
URL: https://github.com/apache/flink/pull/13577#discussion_r505207410



##########
File path: 
flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/plan/TimeIndicatorConversionTest.scala
##########
@@ -204,20 +204,16 @@ class TimeIndicatorConversionTest extends TableTestBase {
 
     val result = t.unionAll(t).select('rowtime)
 
-    val expected = binaryNode(
-      "DataStreamUnion",
-      unaryNode(
-        "DataStreamCalc",
+    val expected = unaryNode(
+      "DataStreamCalc",
+      binaryNode(
+        "DataStreamUnion",
         streamTableNode(t),
-        term("select", "rowtime")
-      ),
-      unaryNode(
-        "DataStreamCalc",
         streamTableNode(t),
-        term("select", "rowtime")
+        term("all", "true"),
+        term("union all", "rowtime, long, int")
       ),
-      term("all", "true"),
-      term("union all", "rowtime")
+      term("select", "rowtime")

Review comment:
       After some debug, i found that the 2 plan has the same cost:
   
![image](https://user-images.githubusercontent.com/7644508/96085883-085c2e00-0ef4-11eb-8345-e1ec62fe7aa2.png)
   




----------------------------------------------------------------
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]


Reply via email to