-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[core] orc/parquet reader obtain the fileSize from metadata #2918
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
Conversation
c476c2c to
1a0599f
Compare
| /** A factory to create {@link RecordReader} for file. */ | ||
| public interface FormatReaderFactory extends Serializable { | ||
|
|
||
| RecordReader<InternalRow> createReader(FileIO fileIO, Path file) throws IOException; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you introduce a Context for FormatReaderFactory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
1a0599f to
a716834
Compare
JingsongLi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Thanks @wg1026688210
Purpose
In order to reduce the access of FileSystem, the format reader of orc/parquet use the fileSize from metadata
Linked issue: related #2978
Tests
KeyValueFileReadWriteTest#testReaderUseFileSizeFromMetadata
API and Format
Documentation