Github user fhueske commented on a diff in the pull request:
https://github.com/apache/flink/pull/1874#discussion_r59524034
--- Diff:
flink-libraries/flink-table/src/main/scala/org/apache/flink/api/table/plan/rules/dataSet/DataSetUnionRule.scala
---
@@ -32,6 +32,13 @@ class DataSetUnionRule
"FlinkUnionRule")
{
+ /**
+ * Only translate UNION ALL
+ */
+ override def matches(call: RelOptRuleCall): Boolean = {
+ val union: LogicalUnion = call.rel(0).asInstanceOf[LogicalUnion]
+ union.all
+ }
def convert(rel: RelNode): RelNode = {
--- End diff --
Add a newline between the methods. I also looks like the indention of
{{convert}} is a bit messed up. Can you correct that as well?
---
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 [email protected] or file a JIRA ticket
with INFRA.
---