apache / orc

Apache ORC - the smallest, fastest columnar storage for Hadoop workloads
https://orc.apache.org/
Apache License 2.0
665 stars 477 forks source link

ORC-1685: Use `Pattern Matching for instanceof` in `RecordReaderImpl` #1884

Closed cxzl25 closed 2 months ago

cxzl25 commented 2 months ago

What changes were proposed in this pull request?

This PR aims to use Java 16 Pattern Matching for instanceof (JEP-394) syntax in RecordReaderImpl.

Why are the changes needed?

Since Apache ORC 2.0 supports Java 17+, we can take advantage of this new syntax.

How was this patch tested?

GA

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

No

dongjoon-hyun commented 2 months ago

Merged to main for Apache ORC 2.1. Thank you, @cxzl25 .