Skip to content

Fix sign shift issue in presto#21884

Merged
spershin merged 1 commit intoprestodb:masterfrom
r-barnes:export-D53577764
Feb 8, 2024
Merged

Fix sign shift issue in presto#21884
spershin merged 1 commit intoprestodb:masterfrom
r-barnes:export-D53577764

Conversation

@r-barnes
Copy link
Contributor

@r-barnes r-barnes commented Feb 8, 2024

Differential Revision: D53577764

Differential Revision: D53577764
@r-barnes r-barnes requested a review from a team as a code owner February 8, 2024 17:21
@facebook-github-bot
Copy link
Collaborator

This pull request was exported from Phabricator. Differential Revision: D53577764

static const char* kMap = "MAP";
static const char* kInt128Array = "INT128_ARRAY";
static const __int128_t kInt128Mask = ~(static_cast<__int128_t>(1) << 127);
static const __uint128_t kInt128Mask = ~(static_cast<__uint128_t>(1) << 127);
Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting that velox/type/DecimalUtil.h
has
static constexpr uint128_t kInt128Mask = (static_cast<uint128_t>(1) << 127);
And it is not really used anywhere.
I think presto_cpp should maybe use that Velox's constant.
But let's merge this one for now to move fast.

@spershin spershin merged commit 82518cb into prestodb:master Feb 8, 2024
@wanglinsong wanglinsong mentioned this pull request Feb 12, 2024
64 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants