-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Bump minimum Java version to 17 and remove pre-17 workarounds #3579
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
Open
iemejia
wants to merge
2
commits into
apache:master
Choose a base branch
from
iemejia:java17-extras
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+88
−113
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,3 +22,5 @@ mvn_install.log | |
| .DS_Store | ||
| .memsearch/ | ||
|
|
||
| .sdkmanrc | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -69,7 +69,7 @@ | |||||
| </mailingLists> | ||||||
|
|
||||||
| <properties> | ||||||
| <maven.compiler.release>11</maven.compiler.release> | ||||||
| <maven.compiler.release>17</maven.compiler.release> | ||||||
| <github.global.server>github</github.global.server> | ||||||
| <jackson.groupId>com.fasterxml.jackson.core</jackson.groupId> | ||||||
| <jackson.datatype.groupId>com.fasterxml.jackson.datatype</jackson.datatype.groupId> | ||||||
|
|
@@ -80,10 +80,10 @@ | |||||
| <jackson-annotations.version>2.21</jackson-annotations.version> | ||||||
| <japicmp.version>0.25.7</japicmp.version> | ||||||
| <javax.annotation.version>1.3.2</javax.annotation.version> | ||||||
| <spotless.version>2.46.1</spotless.version> | ||||||
| <spotless.version>3.5.1</spotless.version> | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| <shade.prefix>shaded.parquet</shade.prefix> | ||||||
| <!-- Guarantees no newer classes/methods/constants are used by parquet. --> | ||||||
| <hadoop.version>3.3.0</hadoop.version> | ||||||
| <hadoop.version>3.4.3</hadoop.version> | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should probably get the hadoop version bump merged first. There's already a PR for that: #3559 |
||||||
| <parquet.format.version>2.12.0</parquet.format.version> | ||||||
| <previous.version>1.17.0</previous.version> | ||||||
| <thrift.executable>thrift</thrift.executable> | ||||||
|
|
@@ -119,23 +119,6 @@ | |||||
|
|
||||||
| <!-- Resource intesive tests are enabled by default but disabled in the CI envrionment --> | ||||||
| <enableResourceIntensiveTests>true</enableResourceIntensiveTests> | ||||||
|
|
||||||
| <extraJavaTestArgs> | ||||||
| -XX:+IgnoreUnrecognizedVMOptions | ||||||
| --add-opens=java.base/java.lang=ALL-UNNAMED | ||||||
| --add-opens=java.base/java.lang.invoke=ALL-UNNAMED | ||||||
| --add-opens=java.base/java.lang.reflect=ALL-UNNAMED | ||||||
| --add-opens=java.base/java.io=ALL-UNNAMED | ||||||
| --add-opens=java.base/java.net=ALL-UNNAMED | ||||||
| --add-opens=java.base/java.nio=ALL-UNNAMED | ||||||
| --add-opens=java.base/java.util=ALL-UNNAMED | ||||||
| --add-opens=java.base/java.util.concurrent=ALL-UNNAMED | ||||||
| --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED | ||||||
| --add-opens=java.base/sun.nio.ch=ALL-UNNAMED | ||||||
| --add-opens=java.base/sun.nio.cs=ALL-UNNAMED | ||||||
| --add-opens=java.base/sun.security.action=ALL-UNNAMED | ||||||
| --add-opens=java.base/sun.util.calendar=ALL-UNNAMED | ||||||
| </extraJavaTestArgs> | ||||||
| </properties> | ||||||
|
|
||||||
| <modules> | ||||||
|
|
@@ -284,6 +267,21 @@ | |||||
| <plugin> | ||||||
| <artifactId>maven-enforcer-plugin</artifactId> | ||||||
| <executions> | ||||||
| <execution> | ||||||
| <id>enforce-java-version</id> | ||||||
| <goals> | ||||||
| <goal>enforce</goal> | ||||||
| </goals> | ||||||
| <configuration> | ||||||
| <rules> | ||||||
| <requireJavaVersion> | ||||||
| <version>[17,)</version> | ||||||
| <message>Java 17 or higher is required to build parquet-java.</message> | ||||||
| </requireJavaVersion> | ||||||
| </rules> | ||||||
| <fail>true</fail> | ||||||
| </configuration> | ||||||
| </execution> | ||||||
| <execution> | ||||||
| <id>enforce-banned-dependencies</id> | ||||||
| <goals> | ||||||
|
|
@@ -432,9 +430,6 @@ | |||||
| <plugin> | ||||||
| <groupId>org.apache.maven.plugins</groupId> | ||||||
| <artifactId>maven-failsafe-plugin</artifactId> | ||||||
| <configuration> | ||||||
| <argLine>${extraJavaTestArgs}</argLine> | ||||||
| </configuration> | ||||||
| <executions> | ||||||
| <execution> | ||||||
| <goals> | ||||||
|
|
@@ -449,7 +444,7 @@ | |||||
| <groupId>org.apache.maven.plugins</groupId> | ||||||
| <artifactId>maven-surefire-plugin</artifactId> | ||||||
| <configuration> | ||||||
| <argLine>${surefire.argLine} ${extraJavaTestArgs}</argLine> | ||||||
| <argLine>${surefire.argLine}</argLine> | ||||||
| <systemPropertyVariables> | ||||||
| <!-- Configure Parquet logging during tests | ||||||
| See http://www.slf4j.org/api/org/slf4j/impl/SimpleLogger.html | ||||||
|
|
@@ -590,7 +585,7 @@ | |||||
| </excludeModules> | ||||||
| <excludes> | ||||||
| <exclude>${shade.prefix}</exclude> | ||||||
| <!-- JDK 11 adds interface methods/bridges on PrimitiveIterator.OfInt; ignore japicmp source incompatibility --> | ||||||
| <!-- JDK adds interface methods/bridges on PrimitiveIterator.OfInt; ignore japicmp source incompatibility --> | ||||||
| <exclude>org.apache.parquet.internal.column.columnindex.IndexIterator</exclude> | ||||||
| <!-- Removal of a protected method in a class that's not supposed to be subclassed by third-party code --> | ||||||
| <exclude>org.apache.parquet.column.values.bytestreamsplit.ByteStreamSplitValuesReader#gatherElementDataFromStreams(byte[])</exclude> | ||||||
|
|
||||||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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.
#3559 has an alternative approach for this.