Skip to content

Conversation

@924060929
Copy link
Contributor

cherry pick from #38981

… to reduce conflict (apache#38981)

The Expression.hashCode default is getClass().hashCode(), just contains
one level information, so the lots of expressions which is same type
will return the same hash code and conflict, then compare deeply in the
HashMap cause inefficient and hold table lock for long time.

This pr support fast compute hash code by the bottom literal and slot,
reduce the compare expression time because of the conflict of hash code

In my test case, the sql planner time can reduce from 20 minutes(not
finished) to 35 seconds

(cherry picked from commit d5049ec)
@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@924060929
Copy link
Contributor Author

run buildall

@924060929 924060929 merged commit 3f6c71e into apache:branch-2.1 Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants