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 PlanNodeStats overflow #11532

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yingsu00
Copy link
Collaborator

PlanNodeStats uses vector_size_t for the number of rows counters, but
it's actually int32_t. This caused overflow for some cases, e.g.
"Exchange: Output: -1734967296 rows (37.14GB, 3171 batches)". This
commit fixes it by changing vector_size_t to uint64_t, which is already
used for the number of bytes counters.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 14, 2024
Copy link

netlify bot commented Nov 14, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit b8c47cb
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/673544eb7429320008a8b922

PlanNodeStats uses vector_size_t for the number of rows counters, but
it's actually int32_t. This caused overflow for some cases, e.g.
"Exchange: Output: -1734967296 rows (37.14GB, 3171 batches)". This
commit fixes it by changing vector_size_t to uint64_t, which is already
used for the number of bytes counters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants