apache / orc

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

ORC-1542: Use Java 16 `Pattern Matching for instanceof` (JEP-394) #1681

Closed dongjoon-hyun closed 11 months ago

dongjoon-hyun commented 11 months ago

What changes were proposed in this pull request?

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

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?

Pass the CIs.