You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2018/06/14 00:00:00 UTC

[jira] [Resolved] (CALCITE-2355) Add multiset operators MULTISET UNION, IS A SET, FUSION, etc.

     [ https://issues.apache.org/jira/browse/CALCITE-2355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julian Hyde resolved CALCITE-2355.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.17.0

Fixed in [d35c11c7|http://git-wip-us.apache.org/repos/asf/calcite/commit/d35c11c7]; thanks for the excellent work, [~Sergey Nuyanzin]!

> Add multiset operators MULTISET UNION, IS A SET, FUSION, etc.
> -------------------------------------------------------------
>
>                 Key: CALCITE-2355
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2355
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>            Reporter: Sergey Nuyanzin
>            Assignee: Julian Hyde
>            Priority: Major
>             Fix For: 1.17.0
>
>
> While working on https://issues.apache.org/jira/browse/FLINK-4542 I realized that most of the multiset operations do not work and skipped in tests with {code}if (TODO) {code}. So here I propose to fix it.
> Here it is my branch with fixes and tests
> Currently it is done for
> {noformat}
> IS A SET
> IS NOT A SET
> IS EMPTY
> IS NOT EMPTY
> MEMBER OF
> MULTISET INTERSECT
> MULTISET INTERSECT ALL
> MULTISET UNION
> MULTISET UNION ALL
> MULTISET EXCEPT
> MULTISET EXCEPT ALL
> SUBMULTISET OF
> NOT SUBMULTISET OF
> {noformat}
> may be the only one which is not done yet is FUSION
> by the way I have a question: is it ok that default case for MULTISET INTERSECT/UNION /EXCEPT  is DISTINCT ([here|https://github.com/apache/calcite/blob/2179f8e87f4179e79e238da3c6c868c315c49e56/core/src/main/codegen/templates/Parser.jj#L5332] ) ? At the same time Oracle behaves in the opposite way (e.g. here https://docs.oracle.com/cd/B19306_01/server.102/b14200/operators006.htm)
> https://github.com/apache/calcite/compare/master...snuyanzin:CALCITE_MULTISETS
> I can make a PR if nobody minds 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)