You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by fhueske <gi...@git.apache.org> on 2016/02/29 15:29:18 UTC
[GitHub] flink pull request: [FLINK-3504] Fix join translation. Equality pr...
GitHub user fhueske opened a pull request:
https://github.com/apache/flink/pull/1734
[FLINK-3504] Fix join translation. Equality predicates may only reference fields
Adapts the join translation rule such that only joins with proper equality join predicates are translated.
A proper equality join predicate does only references fields, i.e., it does not reference expressions.
Joins without at least one proper equality join predicates or with an equality join predicate which references an expression are not translated.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/fhueske/flink tableJoinFix
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/1734.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1734
----
commit 004f409a7d233f711a889229ec22600550637cfd
Author: Fabian Hueske <fh...@apache.org>
Date: 2016-02-29T13:46:08Z
[FLINK-3504] Fix join translation. Equality predicates may only reference fields.
----
---
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.
---
[GitHub] flink pull request: [FLINK-3504] Fix join translation. Equality pr...
Posted by fhueske <gi...@git.apache.org>.
Github user fhueske commented on the pull request:
https://github.com/apache/flink/pull/1734#issuecomment-190601248
Thanks!
---
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.
---
[GitHub] flink pull request: [FLINK-3504] Fix join translation. Equality pr...
Posted by vasia <gi...@git.apache.org>.
Github user vasia commented on the pull request:
https://github.com/apache/flink/pull/1734#issuecomment-190417170
Merging this one too!
---
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.
---
[GitHub] flink pull request: [FLINK-3504] Fix join translation. Equality pr...
Posted by vasia <gi...@git.apache.org>.
Github user vasia commented on the pull request:
https://github.com/apache/flink/pull/1734#issuecomment-190247404
Looks good, thanks!
Just one thing. If the `FlinkJoinRule` doesn't match, could we throw some meaningful exception, e.g. "Join equality predicates should refer to fields only"? Otherwise, the program fails with an ugly `CannotPlanException` and a non-informative message.
---
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.
---
[GitHub] flink pull request: [FLINK-3504] Fix join translation. Equality pr...
Posted by vasia <gi...@git.apache.org>.
Github user vasia commented on the pull request:
https://github.com/apache/flink/pull/1734#issuecomment-190585140
You can close this one too @fhueske.
---
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.
---
[GitHub] flink pull request: [FLINK-3504] Fix join translation. Equality pr...
Posted by fhueske <gi...@git.apache.org>.
Github user fhueske closed the pull request at:
https://github.com/apache/flink/pull/1734
---
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.
---
[GitHub] flink pull request: [FLINK-3504] Fix join translation. Equality pr...
Posted by fhueske <gi...@git.apache.org>.
Github user fhueske commented on the pull request:
https://github.com/apache/flink/pull/1734#issuecomment-190252285
Returning `false` does not imply that no plan can be found. It just means that this branch of the plan space cannot be translated, but other rules such as the rule for extracting expressions out of join conditions can lead to branches that result in valid plans.
So we should not throw an exception in this rule (in fact in no rule). However, we can catch the exception when Calcite did not find a plan and return a more meaningful exception there.
---
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.
---
[GitHub] flink pull request: [FLINK-3504] Fix join translation. Equality pr...
Posted by vasia <gi...@git.apache.org>.
Github user vasia commented on the pull request:
https://github.com/apache/flink/pull/1734#issuecomment-190272164
looks good, thanks!
---
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.
---
[GitHub] flink pull request: [FLINK-3504] Fix join translation. Equality pr...
Posted by fhueske <gi...@git.apache.org>.
Github user fhueske commented on the pull request:
https://github.com/apache/flink/pull/1734#issuecomment-190267290
I added a commit to catch Calcite's planner exception and extend the error message.
---
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.
---