Skip to content

ORC-702: [C++] Support big ORC files in Windows - #584

Merged
dongjoon-hyun merged 1 commit into
apache:masterfrom
mispecto:ms_big_files
Dec 21, 2020
Merged

dongjoon-hyun merged 1 commit into
apache:masterfrom
mispecto:ms_big_files

Conversation

@mispecto

@mispecto mispecto commented Dec 20, 2020 •

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Use 64-bit versions of fstat to support files bigger than 2GB in Windows.

Why are the changes needed?

To support big files.

How was this patch tested?

Manual

Use 64-bit versions of fstat to support files bigger than 2GB.
@pgaref pgaref changed the title Support big ORC files in Windows ORC-702: Support big ORC files in Windows Dec 20, 2020
@pgaref

pgaref commented Dec 20, 2020

Copy link
Copy Markdown
Contributor

Hey @spektom is the issue Windows specific? Seems like the Cpp reader would face similar issues on a Linux env without the change right?

@pgaref pgaref changed the title ORC-702: Support big ORC files in Windows ORC-702: [C++] Support big ORC files in Windows Dec 20, 2020
@mispecto

Copy link
Copy Markdown
Contributor Author

Quoting fstat man page:

"On modern 64-bit systems, life is simpler: there is a single stat() system call and the kernel deals with a stat structure that contains fields of a sufficient size."

So, apparently this isn't an issue in Linux.

@pgaref pgaref left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for clearing this out @spektom ! Patch LGTM

@dongjoon-hyun dongjoon-hyun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1, LGTM.

@dongjoon-hyun
dongjoon-hyun merged commit 17fd9c3 into apache:master Dec 21, 2020
@dongjoon-hyun

Copy link
Copy Markdown
Member

Welcome to the Apache ORC community, @spektom .
You are added to the Apache ORC contributor group and ORC-702 is assigned to you.
Could you make a PR to branch-1.6, too?

@mispecto

Copy link
Copy Markdown
Contributor Author

Thanks @dongjoon-hyun !
Here's PR for branch-1.6: #585

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants