Skip to content

[native] Fix crash in window queries without ORDER BY clause#18895

Merged
mbasmanova merged 1 commit intoprestodb:masterfrom
wuxueyang96:fix_coredump_bug_for_window_node
Jan 12, 2023
Merged

[native] Fix crash in window queries without ORDER BY clause#18895
mbasmanova merged 1 commit intoprestodb:masterfrom
wuxueyang96:fix_coredump_bug_for_window_node

Conversation

@wuxueyang96
Copy link

@wuxueyang96 wuxueyang96 commented Jan 4, 2023

Presto-to-Velox plan conversion logic didn't handle the case of
window clause without ORDER BY causing a crash.

@wuxueyang96 wuxueyang96 requested a review from a team as a code owner January 4, 2023 08:03
Copy link
Contributor

@mbasmanova mbasmanova left a comment

Choose a reason for hiding this comment

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

@wuxueyang96 Thank you for fixing this bug.

@wuxueyang96
Copy link
Author

@mbasmanova PTAL

@mbasmanova
Copy link
Contributor

@wuxueyang96 What is PTAL?

@wuxueyang96
Copy link
Author

@wuxueyang96 What is PTAL?

PTAL is short for please take another look, refer to https://en.wiktionary.org/wiki/PTAL

Copy link
Contributor

@mbasmanova mbasmanova left a comment

Choose a reason for hiding this comment

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

@wuxueyang96 Thank you for adding an e2e test. Let's remove the original unit test that uses hard-coded JSON file, squash commits and write a nice commit message. Check out How to Write Better Git Commit Messages – A Step-By-Step Guide and How to Write a Git Commit Message to learn more about how to write good commit messages.

@wuxueyang96 wuxueyang96 force-pushed the fix_coredump_bug_for_window_node branch 2 times, most recently from e77760a to 28f65ec Compare January 11, 2023 02:33
Copy link
Contributor

@mbasmanova mbasmanova left a comment

Choose a reason for hiding this comment

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

@wuxueyang96 Thank you for iterating on this PR. The code looks good. The commit message needs some improvement. How about,

[native] Fix crash in window queries without ORDER BY clause

Presto-to-Velox plan conversion logic didn't handle the case of 
window clause without ORDER BY causing a crash.

Fix for coredump which was caused by window node

@mbasmanova mbasmanova changed the title [native] Fix coredump bug for VeloxQueryPlanConverter. [native] Fix crash in window queries without ORDER BY clause Jan 11, 2023
Presto-to-Velox plan conversion logic didn't handle the case of
window clause without ORDER BY causing a crash.
@wuxueyang96 wuxueyang96 force-pushed the fix_coredump_bug_for_window_node branch from 28f65ec to 45045e0 Compare January 11, 2023 14:20
@wuxueyang96
Copy link
Author

@wuxueyang96 Thank you for iterating on this PR. The code looks good. The commit message needs some improvement. How about,

[native] Fix crash in window queries without ORDER BY clause

Presto-to-Velox plan conversion logic didn't handle the case of 
window clause without ORDER BY causing a crash.

Fix for coredump which was caused by window node

This commit message looks better. Thanks.

Copy link
Contributor

@mbasmanova mbasmanova left a comment

Choose a reason for hiding this comment

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

@wuxueyang96 Thank you for fixing this crash.

@mbasmanova
Copy link
Contributor

@wuxueyang96 Ping me once CI is green so I can merge the PR.

@wuxueyang96
Copy link
Author

@wuxueyang96 Ping me once CI is green so I can merge the PR.

CI is green now.

Thank you!

@mbasmanova mbasmanova merged commit fe8deb9 into prestodb:master Jan 12, 2023
@mbasmanova
Copy link
Contributor

@wuxueyang96 Thank you for the contribution.

@wanglinsong wanglinsong mentioned this pull request Feb 25, 2023
12 tasks
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.

3 participants