You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@parquet.apache.org by "dossett (via GitHub)" <gi...@apache.org> on 2025/12/29 16:16:31 UTC
[PR] [minor] Move on from java8 for three core modules [parquet-java]
dossett opened a new pull request, #3379:
URL: https://github.com/apache/parquet-java/pull/3379
Move on from Java 8 in `parquet-{common,column,hadoop}`. This PR was created with codex and this is how it describes the changes:
What changed (Java 11 cleanups enabled by dropping Java 8):
- Replaced Arrays.asList(...) and other collection boilerplate with List.of(...) where nulls aren’t used, reducing allocations and improving clarity.
- Used Set.of(...) for small constant sets to simplify initialization.
- Tightened helper/collection usages in tests to lean on Java 9+ convenience factories.
- Kept Arrays.asList(...) where nulls are required to preserve behavior.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For additional commands, e-mail: issues-help@parquet.apache.org
Re: [PR] [minor] Move on from java8 for three core modules [parquet-java]
Posted by "dossett (via GitHub)" <gi...@apache.org>.
dossett commented on PR #3379:
URL: https://github.com/apache/parquet-java/pull/3379#issuecomment-3697007155
There's a CI failure that I really don't think is related to my change. Is this a known flaky test?
```Error: Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.879 s <<< FAILURE! -- in org.apache.parquet.column.values.bitpacking.TestByteBitPacking512VectorLE
Error: org.apache.parquet.column.values.bitpacking.TestByteBitPacking512VectorLE.unpackValuesUsingVector -- Time elapsed: 3.877 s <<< ERROR!
java.lang.OutOfMemoryError: Java heap space```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For additional commands, e-mail: issues-help@parquet.apache.org
Re: [PR] [minor] Move on from java8 for three core modules [parquet-java]
Posted by "Fokko (via GitHub)" <gi...@apache.org>.
Fokko merged PR #3379:
URL: https://github.com/apache/parquet-java/pull/3379
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For additional commands, e-mail: issues-help@parquet.apache.org
Re: [PR] [minor] Move on from java8 for three core modules [parquet-java]
Posted by "Fokko (via GitHub)" <gi...@apache.org>.
Fokko commented on code in PR #3379:
URL: https://github.com/apache/parquet-java/pull/3379#discussion_r2687588856
##########
parquet-column/src/main/java/org/apache/parquet/schema/LogicalTypeAnnotation.java:
##########
@@ -822,8 +819,7 @@ PrimitiveStringifier valueStringifier(PrimitiveType primitiveType) {
}
public static class IntLogicalTypeAnnotation extends LogicalTypeAnnotation {
- private static final Set<Integer> VALID_BIT_WIDTH =
- Collections.unmodifiableSet(new HashSet<>(asList(8, 16, 32, 64)));
+ private static final Set<Integer> VALID_BIT_WIDTH = Set.of(8, 16, 32, 64);
Review Comment:
`Set.of` is also immutable 👍
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For additional commands, e-mail: issues-help@parquet.apache.org