You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by godfreyhe <gi...@git.apache.org> on 2017/02/06 06:12:18 UTC
[GitHub] flink pull request #3101: [FLINK-5406] [table] add normalization phase for p...
Github user godfreyhe commented on a diff in the pull request:
https://github.com/apache/flink/pull/3101#discussion_r99522172
--- Diff: flink-libraries/flink-table/src/test/scala/org/apache/flink/table/AggregationTest.scala ---
@@ -165,14 +165,20 @@ class AggregationTest extends TableTestBase {
val util = batchTestUtil()
val sourceTable = util.addTable[(Int, Long, Int)]("MyTable", 'a, 'b, 'c)
- val resultTable = sourceTable.groupBy('a)
+ // Move "where" before "groupBy" for the former query would generate
+ // nondeterministic plans with same cost. If we change FlinkRuleSets.DATASET_OPT_RULES,
+ // the importance of relNode may change, and the test may fail. This issue is mentioned
+ // in FLINK-5394, we could move "where" to the end when FLINK-5394 is fixed.
+ val resultTable = sourceTable.where('a === 1)
--- End diff --
OK
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---