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

Test sort merge join on TPC-H benchmark #13572

Merged
merged 3 commits into from
Nov 29, 2024

Conversation

Dandandan
Copy link
Contributor

@Dandandan Dandandan commented Nov 26, 2024

Which issue does this PR close?

Closes #13573

Rationale for this change

More testing for sort merge join

What changes are included in this PR?

  • Split tests into plans and answers
  • Test answers with datafusion.optimizer.prefer_hash_join = false

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Nov 26, 2024
@Dandandan Dandandan marked this pull request as ready for review November 26, 2024 22:23
@Dandandan Dandandan changed the title Test merge join Test sort merge join on TPC-H benchmark Nov 26, 2024
Copy link
Contributor

@comphead comphead left a comment

Choose a reason for hiding this comment

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

Thanks @Dandandan I'll check this later.

Earlier there was introduced a env var to run TPCH benches with SMJ enabled.

#10092

Copy link
Contributor

@comphead comphead left a comment

Choose a reason for hiding this comment

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

Thanks @Dandandan it looks great. One question, is it supposed to have an SMJ in expected plans? I picked some plan files and haven't noticed SMJ plan nodes there

@Dandandan
Copy link
Contributor Author

Thanks @Dandandan it looks great. One question, is it supposed to have an SMJ in expected plans? I picked some plan files and haven't noticed SMJ plan nodes there

No, they aren't supposed to, I only moved the existing hash join plans and tested both hash join as sort merge join for answers.

Copy link
Contributor

@comphead comphead left a comment

Choose a reason for hiding this comment

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

lgtm thanks @Dandandan

@Dandandan Dandandan merged commit 6512437 into apache:main Nov 29, 2024
30 checks passed
@Dandandan
Copy link
Contributor Author

Thanks for the review @comphead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test TPCH with sort merge join
2 participants