feat(query): integrate hash join with new filter framework #14689
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/
Summary
Integrate hash join with new filter framework to handle other predicates in hash join, left / right mark join are temporarily unable to integrate new filter.
Benchmark
Test SQL
Before
![截屏2024-02-23 17 32 13](https://private-user-images.githubusercontent.com/54522439/307280287-0656455e-01bc-4ad3-9243-136e2ef2a331.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxOTQxOTMsIm5iZiI6MTczOTE5Mzg5MywicGF0aCI6Ii81NDUyMjQzOS8zMDcyODAyODctMDY1NjQ1NWUtMDFiYy00YWQzLTkyNDMtMTM2ZTJlZjJhMzMxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDEzMjQ1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJlZDVjZmY3MTBmNWQ5OTYyOTFlMTY3NDA4ODNhYTFjZTcxMWE3NDA0MjVmNTA5YmRhZjQ5YmFlNGNiYWM4OWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.epI5czzE6p3r9nKyHjPCZ4dSgd3m21RbZ5YkvPdM91o)
After
![截屏2024-02-23 17 31 38](https://private-user-images.githubusercontent.com/54522439/307279482-fdc84a74-1318-44a0-846d-dcdad7903570.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxOTQxOTMsIm5iZiI6MTczOTE5Mzg5MywicGF0aCI6Ii81NDUyMjQzOS8zMDcyNzk0ODItZmRjODRhNzQtMTMxOC00NGEwLTg0NmQtZGNkYWQ3OTAzNTcwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDEzMjQ1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTljYTBhNDY1NGE4NWJlYzI1MWU3NGZjNzc3ODIzMDkzYTQ0YTY3MGE3N2NiY2NlYjUzZTFhZWRhZGQwMGI3MTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.iT242BpVDWVp18Dw1mTThJCmOGgBs3GJJ2Ucmm-CZHk)
Tests
Type of change
This change is![Reviewable](https://camo.githubusercontent.com/1541c4039185914e83657d3683ec25920c672c6c5c7ab4240ee7bff601adec0b/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)