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

Remove additional cast from TPCH q8 #7233

Merged
merged 1 commit into from
Aug 9, 2023

Conversation

viirya
Copy link
Member

@viirya viirya commented Aug 8, 2023

Which issue does this PR close?

Closes #7216.
Closes #6794.

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

sum(case
when nation = 'BRAZIL' then volume
else 0
end) / sum(volume) as mkt_share
Copy link
Member Author

Choose a reason for hiding this comment

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

These cast are added before to work around overflow issue.

After #6832, q8 should pass without cast.

Copy link
Member Author

Choose a reason for hiding this comment

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

Looks okay, all tests are passed.

@alamb
Copy link
Contributor

alamb commented Aug 8, 2023

Thank you @viirya

Copy link
Member

@andygrove andygrove left a comment

Choose a reason for hiding this comment

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

Thanks @viirya

@andygrove andygrove merged commit a76c3d3 into apache:main Aug 9, 2023
@viirya
Copy link
Member Author

viirya commented Aug 9, 2023

Thanks @alamb @andygrove

@alamb
Copy link
Contributor

alamb commented Aug 9, 2023

The code is flowing freely these days -- it is great to see!

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.

TPC-H q8 fails with overflow (since version 28) Incorrect results returned for TPC-H Query 8
3 participants