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-937: Replace deprecated method #850

Merged
merged 1 commit into from Aug 11, 2021

Conversation

guiyanakuang
Copy link
Member

What changes were proposed in this pull request?

Exclude calls to deprecated methods for compatibility or active testing. Replace all deprecated methods with recommended methods.

org.apache.commons.cli
OptionBuilder -> Option.builder
GnuParser -> DefaultParser

org.apache.parquet.avro
AvroParquetWriter.<GenericData.Record>builder(path) -> AvroParquetWriter.<GenericData.Record>builder(outputFile)
AvroParquetReader.<GenericData.Record>builder(path) -> AvroParquetReader.<GenericData.Record>builder(inputFile)

DateColumnStatistics
getMaximum -> getMaximumLocalDate
getMinimum -> getMinimumLocalDate

hadoop
FSDataOutputStream(OutputStream) -> FSDataOutputStream(OutputStream, FileSystem.Statistics)
fileStatus.isDir -> fileStatus.isDirectory

Why are the changes needed?

Use the recommended method. Possible deprecated methods are removed when dependencies are upgraded.

How was this patch tested?

Pass the CIs

Exclude calls to deprecated methods for compatibility or active testing. Replace all deprecated methods with recommended methods.
@github-actions github-actions bot added the JAVA label Aug 11, 2021
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.

Thank you, @guiyanakuang .

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. Thank you, @guiyanakuang .
Merged to main for Apache ORC 1.8.

@dongjoon-hyun dongjoon-hyun merged commit 4799fa5 into apache:main Aug 11, 2021
@guiyanakuang
Copy link
Member Author

Thanks @dongjoon-hyun for a quick review. I am pleased to contribute.

@dongjoon-hyun dongjoon-hyun added this to the 1.8.0 milestone Apr 29, 2022
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