Skip to content

Conversation

@ngsg
Copy link
Contributor

@ngsg ngsg commented Dec 19, 2023

What changes were proposed in this pull request?

Do not convert FullOuter Join to MapJoin if it has filter expressions. This partially disables HIVE-18908 optimization, which introduces FullOuterJoin + MapJoin.

Why are the changes needed?

As described in HIVE-27226, current Hive produces wrong result when we have FullOuterJoin + MapJoin + filters.

Does this PR introduce any user-facing change?

No

Is the change a dependency upgrade?

No

How was this patch tested?

No test was added as this is just a quick-fix.
One can check the execution of FullOuterJoin + MapJoin + filter by running queries in HIVE-27226 JIRA pages.

@deniskuzZ deniskuzZ changed the title HIVE-27226: Don't convert FullOuterJoin + filter to MapJoin HIVE-27988: Don't convert FullOuterJoin + filter to MapJoin Jan 8, 2024
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 8, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link
Member

@deniskuzZ deniskuzZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM +1

@deniskuzZ deniskuzZ merged commit f355c82 into apache:branch-4.0 Jan 10, 2024
deniskuzZ pushed a commit to deniskuzZ/hive that referenced this pull request Mar 1, 2024
…gon Namgung, reviewed by Denys Kuzmenko)

Closes apache#4958

(cherry picked from commit f355c82)
deniskuzZ pushed a commit that referenced this pull request Jun 9, 2025
…gon Namgung, reviewed by Denys Kuzmenko)

Closes #4958

(cherry picked from commit f355c82)
(cherry picked from commit c199e9e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants