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

ORC-1228: Fix setAttribute to handle null value #1196

Closed
wants to merge 1 commit into from

Conversation

williamhyun
Copy link
Member

@williamhyun williamhyun commented Jul 26, 2022

What changes were proposed in this pull request?

This PR aims to fix setAttribute to handle null value.

Why are the changes needed?

In case of clearing the value with null, we should remove the corresponding key also to save memory.

How was this patch tested?

Pass the CIs with the new test case.

@github-actions github-actions bot added the JAVA label Jul 26, 2022
@williamhyun williamhyun changed the title ORC-1228: Fix setAttribute to handle null value ORC-1228: Fix setAttribute to handle null value Jul 26, 2022
@williamhyun
Copy link
Member Author

cc: @dongjoon-hyun

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.

+1, LGTM. I agree with you that the new behavior is much better.

@dongjoon-hyun
Copy link
Member

Feel free to merge and backport, @williamhyun . You are the release manager of Apache ORC 1.7.6.

@dongjoon-hyun dongjoon-hyun added this to the 1.7.6 milestone Jul 26, 2022
williamhyun added a commit that referenced this pull request Jul 26, 2022
### What changes were proposed in this pull request?
This PR aims to fix `setAttribute` to handle null value.

### Why are the changes needed?
In case of clearing the value with null, we should remove the corresponding key also to save memory.

### How was this patch tested?
Pass the CIs with the new test case.

Closes #1196 from williamhyun/setattributenull.

Authored-by: William Hyun <william@apache.org>
Signed-off-by: William Hyun <william@apache.org>
(cherry picked from commit fbcbac5)
Signed-off-by: William Hyun <william@apache.org>
williamhyun added a commit that referenced this pull request Jul 26, 2022
### What changes were proposed in this pull request?
This PR aims to fix `setAttribute` to handle null value.

### Why are the changes needed?
In case of clearing the value with null, we should remove the corresponding key also to save memory.

### How was this patch tested?
Pass the CIs with the new test case.

Closes #1196 from williamhyun/setattributenull.

Authored-by: William Hyun <william@apache.org>
Signed-off-by: William Hyun <william@apache.org>
(cherry picked from commit fbcbac5)
Signed-off-by: William Hyun <william@apache.org>
cxzl25 pushed a commit to cxzl25/orc that referenced this pull request Jan 11, 2024
### What changes were proposed in this pull request?
This PR aims to fix `setAttribute` to handle null value.

### Why are the changes needed?
In case of clearing the value with null, we should remove the corresponding key also to save memory.

### How was this patch tested?
Pass the CIs with the new test case.

Closes apache#1196 from williamhyun/setattributenull.

Authored-by: William Hyun <william@apache.org>
Signed-off-by: William Hyun <william@apache.org>
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.

None yet

2 participants