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

fix q35 #17

Merged
merged 1 commit into from
Nov 1, 2024
Merged

fix q35 #17

merged 1 commit into from
Nov 1, 2024

Conversation

onursatici
Copy link
Contributor

per apache/datafusion#4763 (comment) , q35 should be able to be executed now without column name collusions

Comment on lines +10 to +12
min(cd_dep_count),
max(cd_dep_count),
stddev_samp(cd_dep_count),
stddev_samp(cd_dep_count),
avg(cd_dep_count),
Copy link
Member

Choose a reason for hiding this comment

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

The queries in this repo are the official queries as generated by the TPC-DS query generator provided by the TPC. I don't think that we should be changing them?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think the query generator has a bug in this case, see https://github.com/apache/datafusion/blob/main/datafusion/core/tests/tpc-ds/35.sql as another generated version that correctly substituted the aggregations

Copy link
Member

Choose a reason for hiding this comment

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

You are correct. I just checked the query description in the TPC-DS specification, and it does not use stdev_sample. I wonder if this was inadvertently checked in after some manual experimentation. Thanks for catching this!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No worries, latest version of the tpc-ds generator also generated this query wrong for me, so I think it is some bug in the param substitution in the dsqgen executable

@andygrove andygrove merged commit 3668e39 into apache:main Nov 1, 2024
@onursatici onursatici deleted the os/q35 branch November 2, 2024 18:39
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