Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] Support null equal safe join in SQL #3166

Merged

Conversation

advancedxy
Copy link
Contributor

One follow-up of #3161: add on a <=> b support for SQL's Join operation.

@advancedxy advancedxy changed the title Null equal safe sql support FEAT] Support null equal safe join in SQL Nov 4, 2024
@advancedxy advancedxy changed the title FEAT] Support null equal safe join in SQL [FEAT] Support null equal safe join in SQL Nov 4, 2024
@github-actions github-actions bot added the enhancement New feature or request label Nov 4, 2024
Copy link

codspeed-hq bot commented Nov 4, 2024

CodSpeed Performance Report

Merging #3166 will not alter performance

Comparing advancedxy:null_equal_safe_sql_support (f1e96f3) with main (22c39c0)

Summary

✅ 17 untouched benchmarks

@universalmind303
Copy link
Collaborator

@advancedxy, #3161 is merged now, so feel free to ping me once this one has all conflicts resolved & ready for review!

@universalmind303 universalmind303 requested review from universalmind303 and removed request for universalmind303 November 6, 2024 00:02
@advancedxy advancedxy marked this pull request as draft November 6, 2024 01:33
@advancedxy advancedxy marked this pull request as ready for review November 6, 2024 03:01
@advancedxy
Copy link
Contributor Author

@universalmind303 I think it's ready for review once the CI passes.

@@ -41,6 +41,8 @@ impl OptimizerRule for EliminateCrossJoin {
LogicalPlan::Join(Join {
join_type: JoinType::Inner,
join_strategy: None,
// TODO: consider support eliminate cross join with null_equals_nulls
null_equals_nulls: None,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seems that I didn't cover this in my previous PR. I found elimate_cross_join is not compatible with join with null equal safe yet when adding a test in the python side(a.k.a tests/sql/test_joins.py).

I simply disable this for now as it seems it might require a decent amount of work to support that.

right_on: right_keys,
null_equals_nulls: None,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is just style change, to align it with the struct definition.

Copy link
Collaborator

@universalmind303 universalmind303 left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks again @advancedxy

@universalmind303 universalmind303 merged commit d8cdf36 into Eventual-Inc:main Nov 6, 2024
38 checks passed
@advancedxy advancedxy deleted the null_equal_safe_sql_support branch November 6, 2024 16:46
@advancedxy
Copy link
Contributor Author

Thanks for reviewing and merging. It would be great if you could take a look at #3134 as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants