Skip to content

Conversation

@letian-jiang
Copy link
Contributor

What changes were proposed in this pull request?

Why are the changes needed?

The low part of Int128::maximumValue is wrong. In hex format, it should be 0xffffffffffffffff rather than 0xfffffffffffffff, in which one f is dropped by mistake.

How was this patch tested?

I have added the relevant unit tests.

Was this patch authored or co-authored using generative AI tooling?

No.

Signed-off-by: Letian Jiang <[email protected]>
@github-actions github-actions bot added the CPP label Jul 6, 2024
@ffacs ffacs changed the title ORC-1738: Fix wrong Int128 maximum value ORC-1738: [C++] Fix wrong Int128 maximum value Jul 7, 2024
Copy link
Contributor

@ffacs ffacs left a comment

Choose a reason for hiding this comment

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

LGTM, +1

@ffacs
Copy link
Contributor

ffacs commented Jul 9, 2024

It's an issue from day one; perhaps we should consider cherry-picking it into branch-1.0.

@dongjoon-hyun dongjoon-hyun added this to the 1.7.11 milestone Jul 9, 2024
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

Yes, +1 for backporting for all live release branches.

  • master
  • branch-2.0
  • branch-1.9
  • branch-1.8
  • branch-1.7

dongjoon-hyun pushed a commit that referenced this pull request Jul 9, 2024
### What changes were proposed in this pull request?

### Why are the changes needed?

The low part of Int128::maximumValue is wrong. In hex format, it should be 0xffffffffffffffff rather than 0xfffffffffffffff, in which one f is dropped by mistake.

### How was this patch tested?

I have added the relevant unit tests.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #1970 from letian-jiang/fix-128-max.

Authored-by: Letian Jiang <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 9af09ec)
Signed-off-by: Dongjoon Hyun <[email protected]>
dongjoon-hyun pushed a commit that referenced this pull request Jul 9, 2024
### What changes were proposed in this pull request?

### Why are the changes needed?

The low part of Int128::maximumValue is wrong. In hex format, it should be 0xffffffffffffffff rather than 0xfffffffffffffff, in which one f is dropped by mistake.

### How was this patch tested?

I have added the relevant unit tests.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #1970 from letian-jiang/fix-128-max.

Authored-by: Letian Jiang <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 9af09ec)
Signed-off-by: Dongjoon Hyun <[email protected]>
dongjoon-hyun pushed a commit that referenced this pull request Jul 9, 2024
### What changes were proposed in this pull request?

### Why are the changes needed?

The low part of Int128::maximumValue is wrong. In hex format, it should be 0xffffffffffffffff rather than 0xfffffffffffffff, in which one f is dropped by mistake.

### How was this patch tested?

I have added the relevant unit tests.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #1970 from letian-jiang/fix-128-max.

Authored-by: Letian Jiang <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 9af09ec)
Signed-off-by: Dongjoon Hyun <[email protected]>
dongjoon-hyun pushed a commit that referenced this pull request Jul 9, 2024
### What changes were proposed in this pull request?

### Why are the changes needed?

The low part of Int128::maximumValue is wrong. In hex format, it should be 0xffffffffffffffff rather than 0xfffffffffffffff, in which one f is dropped by mistake.

### How was this patch tested?

I have added the relevant unit tests.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #1970 from letian-jiang/fix-128-max.

Authored-by: Letian Jiang <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 9af09ec)
Signed-off-by: Dongjoon Hyun <[email protected]>
@dongjoon-hyun
Copy link
Member

Welcome to the Apache ORC community, @letian-jiang .
I added you to the Apache ORC contributor group and assigned ORC-1738 to you.
Thank you again!

@dongjoon-hyun
Copy link
Member

cc @williamhyun too because he is a release manager of ORC 1.9.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants