GitHub user AlexanderShoshin opened a pull request:
https://github.com/apache/flink/pull/2811
[Flink-4541] Support for SQL NOT IN operator
NOT IN was not working with nested queries because of missed DataSet cross
join rule.
I added DataSetSingleRowCrossRule that converts a cross join into a
DataSetSingleRowCross only if one of inputs is a global aggregation (so it
contains only one row). It is enough to make NOT IN work and it won't enable
queries with classical cross joins.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/AlexanderShoshin/flink FLINK-4541
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/2811.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 #2811
----
commit ca24a3a55fb2c55280386eecaaaf4d640350f62a
Author: Alexander Shoshin <[email protected]>
Date: 2016-11-09T08:27:57Z
Add unit tests for a cross join
commit 193eedd378df87391a41345a0f9a9cb6d5d35232
Author: Alexander Shoshin <[email protected]>
Date: 2016-11-03T16:24:25Z
[FLINK-4541] Add support for DataSet cross join operation
----
---
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.
---