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-1644: Add merge tool to merge multiple ORC files into a single ORC file #1834

Closed
wants to merge 4 commits into from

Conversation

cxzl25
Copy link
Contributor

@cxzl25 cxzl25 commented Mar 1, 2024

What changes were proposed in this pull request?

This PR aims to add merge tool to merges multiple ORC files to produce a single ORC file.

Why are the changes needed?

In the ORC 1.3.0 version, the OrcFile#mergeFiles method was introduced by ORC-132 , which supports merging multiple ORC files into one ORC file.
However, when merging, we need to write Java code to call it.
There is no simple command that can be called directly.

How was this patch tested?

Add UT

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

No

@github-actions github-actions bot added the JAVA label Mar 1, 2024
@cxzl25 cxzl25 changed the title ORC-1644: Add merge tool to merges multiple ORC files to produce a single ORC file ORC-1644: Add merge tool to merges multiple ORC files to produce a single ORC file Mar 1, 2024
@github-actions github-actions bot added the DOCS label Mar 1, 2024
@dongjoon-hyun dongjoon-hyun changed the title ORC-1644: Add merge tool to merges multiple ORC files to produce a single ORC file ORC-1644: Add merge tool to merge multiple ORC files into a single ORC file Mar 4, 2024
Copy link
Member

@williamhyun williamhyun 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

Thank you @cxzl25 @dongjoon-hyun, I will be merging to main and 2.0 for Apache ORC 2.0.1

@williamhyun williamhyun added this to the 2.0.1 milestone Mar 10, 2024
williamhyun pushed a commit that referenced this pull request Mar 10, 2024
…ORC file

### What changes were proposed in this pull request?
This PR aims to add merge tool to merges multiple ORC files to produce a single ORC file.

### Why are the changes needed?
In the ORC 1.3.0 version, the `OrcFile#mergeFiles` method was introduced by [ORC-132](https://issues.apache.org/jira/browse/ORC-132) , which supports merging multiple ORC files into one ORC file.
However, when merging, we need to write Java code to call it.
There is no simple command that can be called directly.

### How was this patch tested?
Add UT

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

Closes #1834 from cxzl25/ORC-1644.

Authored-by: sychen <sychen@ctrip.com>
Signed-off-by: William Hyun <william@apache.org>
(cherry picked from commit b031d37)
Signed-off-by: William Hyun <william@apache.org>
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, too.

@dongjoon-hyun
Copy link
Member

Thank you, @williamhyun .

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.

None yet

3 participants