You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/10/02 01:08:00 UTC

[jira] [Commented] (ASTERIXDB-2782) Left outer nested loop join gives incorrect result on empty input

    [ https://issues.apache.org/jira/browse/ASTERIXDB-2782?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17205910#comment-17205910 ] 

ASF subversion and git services commented on ASTERIXDB-2782:
------------------------------------------------------------

Commit d28b689de69fd4d739ee4207717fe4efa1cc5eab in asterixdb's branch refs/heads/master from Ali Alsuliman
[ https://gitbox.apache.org/repos/asf?p=asterixdb.git;h=d28b689 ]

[ASTERIXDB-2782][RT] Incorrect result in left outer nested loop join

- user model changes: no
- storage format changes: no
- interface changes: no

Details:
Produce missing when the right side of the left outer join
is empty similar to hash-join.

Change-Id: I5f268477823f8739e1441d48f06d7cbd2bc5f7db
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/8065
Integration-Tests: Jenkins <je...@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>
Reviewed-by: Ali Alsuliman <al...@gmail.com>
Reviewed-by: Dmitry Lychagin <dm...@couchbase.com>


> Left outer nested loop join gives incorrect result on empty input
> -----------------------------------------------------------------
>
>                 Key: ASTERIXDB-2782
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2782
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: RT - Runtime
>    Affects Versions: 0.9.4
>            Reporter: Ali Alsuliman
>            Assignee: Ali Alsuliman
>            Priority: Major
>             Fix For: 0.9.5
>
>
> The below query which uses hash-join returns the expected result 
> {code:java}
> // ds1 has one tuple {"id": "1", "f": 3}
> // ds2 is an empty dataset
> FROM ds1 LEFT OUTER JOIN ds2 ON ds1.f = ds2.f
> SELECT ds1, ds2;
> {code}
> The returned result is
> {code:java}
> { "ds1": { "id": "1", "f": 3 } }{code}
> But the below equivalent query which uses nested-loop join returns incorrect result
> {code:java}
> FROM ds1 LEFT OUTER JOIN ds2 ON ds1.f > ds2.f
> SELECT ds1, ds2;
> {code}
> The returned result is
> {code:java}
> { }
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)