Skip to content

Conversation

@deniskuzZ
Copy link
Member

@deniskuzZ deniskuzZ commented Dec 7, 2023

What changes were proposed in this pull request?

In cases where different Rel nodes refer to the same correlation var, we avoid creating another correlation var and record the 'rel' using the same correlation.
SortedSetMultimap can't be used since it doesn't allow duplicates.
mapFieldAccessToCorVar.containsKey(fieldAccess) was never positive in previous versions of Calcite (1.16) since RexFieldAccess had no equals() and hashcode() defined.

Why are the changes needed?

fixes plan after decorrelation

Does this PR introduce any user-facing change?

No

Is the change a dependency upgrade?

No

How was this patch tested?

mvn test -Dtest=TestMiniLlapLocalCliDriver -Dqfile=subquery_complex_correlation_predicates.q

Copy link

@aturoczy aturoczy left a comment

Choose a reason for hiding this comment

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

+1 and thanks for the tesing

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 8, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

warning The version of Java (11.0.8) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

Copy link
Member

@ayushtkn ayushtkn left a comment

Choose a reason for hiding this comment

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

LGTM

@deniskuzZ deniskuzZ merged commit 841be7f into apache:master Dec 13, 2023
@deniskuzZ deniskuzZ deleted the HIVE-27714 branch December 13, 2023 09:15
tarak271 pushed a commit to tarak271/hive-1 that referenced this pull request Dec 19, 2023
…zmenko, reviewed by Attila Turoczy, Ayush Saxena)

Closes apache#4922
tarak271 pushed a commit to tarak271/hive-1 that referenced this pull request Dec 19, 2023
…zmenko, reviewed by Attila Turoczy, Ayush Saxena)

Closes apache#4922
deniskuzZ added a commit to deniskuzZ/hive that referenced this pull request Jan 2, 2024
…zmenko, reviewed by Attila Turoczy, Ayush Saxena)

Closes apache#4922
dengzhhu653 pushed a commit to dengzhhu653/hive that referenced this pull request Mar 7, 2024
…zmenko, reviewed by Attila Turoczy, Ayush Saxena)

Closes apache#4922
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.

4 participants