Skip to content

fix: Change count metric from signed to unsigned (int64_t -> uint64_t)#16989

Open
rui-mo wants to merge 2 commits intofacebookincubator:mainfrom
rui-mo:wip_uint64
Open

fix: Change count metric from signed to unsigned (int64_t -> uint64_t)#16989
rui-mo wants to merge 2 commits intofacebookincubator:mainfrom
rui-mo:wip_uint64

Conversation

@rui-mo
Copy link
Copy Markdown
Collaborator

@rui-mo rui-mo commented Mar 31, 2026

Use an unsigned type for the count metric while keeping int64_t for value
metrics. When the unit is kNone, negative values can be valid such as for delta-
type metrics, so int64_t remains appropriate. In contrast, count should
always be non-negative. This PR also addresses potential overflow when
converting unsigned metrics to RuntimeMetrics.

Replace: #15536

@meta-cla meta-cla 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 Mar 31, 2026
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 31, 2026

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit ddc1f70
🔍 Latest deploy log https://app.netlify.com/projects/meta-velox/deploys/69cdc555ed8290000837fc3d

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 31, 2026

Build Impact Analysis

Full build recommended. Files outside the dependency graph changed:

  • velox/experimental/cudf/exec/CudfHashAggregation.cpp

These directories are not fully covered by the dependency graph. A full build is the safest option.

cmake --build _build/release

Fast path • Graph from main@2352ca6e3794ad44611df76f2aa58fa78fe6d235

@rui-mo
Copy link
Copy Markdown
Collaborator Author

rui-mo commented Mar 31, 2026

Hi @Yuhta @peterenescu, a compatibility layer (prestodb/presto#27295) has been merged into Presto, which should unblock the Velox merge. Could you please re-import this PR? Thanks!

@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Apr 2, 2026

@peterenescu has imported this pull request. If you are a Meta employee, you can view this in D99206627.

@peterenescu
Copy link
Copy Markdown
Contributor

@rui-mo Looks like internally we are still behind. Let me rebase later today or tomorrow to see if changes are pulled

@rui-mo
Copy link
Copy Markdown
Collaborator Author

rui-mo commented Apr 2, 2026

@peterenescu Got it. Thanks for your assistance.

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