-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Use vendored calcite 1.40 #35718
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
Merged
Merged
Use vendored calcite 1.40 #35718
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
31ce80f
Use vendored Calcite 1.40.0
Abacn a91d106
Fix after upgrading to Calcite 1.40
Abacn 6a0f130
Fix Iceberg SQL test
ahmedabu98 531b5fc
trigger tests
Abacn 643d5e5
Fix tpcds json dependency change
Abacn 377dff5
Update CHANGES.md
Abacn 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"comment": "Modify this file in a trivial way to cause this test suite to run ", | ||
"modification": 2 | ||
"modification": 3 | ||
} |
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
{ | ||
"https://github.com/apache/beam/pull/32648": "testing Flink 1.19 support", | ||
"modification": 3 | ||
"modification": 4 | ||
} |
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 |
---|---|---|
|
@@ -72,7 +72,7 @@ dependencies { | |
javacc "net.java.dev.javacc:javacc:4.0" | ||
fmppTask "com.googlecode.fmpp-maven-plugin:fmpp-maven-plugin:1.0" | ||
fmppTask "org.freemarker:freemarker:2.3.31" | ||
fmppTemplates library.java.vendored_calcite_1_28_0 | ||
fmppTemplates library.java.vendored_calcite_1_40_0 | ||
implementation project(path: ":sdks:java:core", configuration: "shadow") | ||
implementation project(":sdks:java:managed") | ||
implementation project(":sdks:java:io:iceberg") | ||
|
@@ -87,7 +87,7 @@ dependencies { | |
implementation library.java.commons_csv | ||
implementation library.java.jackson_databind | ||
implementation library.java.joda_time | ||
implementation library.java.vendored_calcite_1_28_0 | ||
implementation library.java.vendored_calcite_1_40_0 | ||
implementation "org.codehaus.janino:janino:3.0.11" | ||
implementation "org.codehaus.janino:commons-compiler:3.0.11" | ||
implementation library.java.jackson_core | ||
|
@@ -117,7 +117,7 @@ dependencies { | |
|
||
testImplementation "org.apache.iceberg:iceberg-api:1.6.1" | ||
testImplementation "org.apache.iceberg:iceberg-core:1.6.1" | ||
testImplementation library.java.vendored_calcite_1_28_0 | ||
testImplementation library.java.vendored_calcite_1_40_0 | ||
testImplementation library.java.vendored_guava_32_1_2_jre | ||
testImplementation library.java.junit | ||
testImplementation library.java.quickcheck_core | ||
|
@@ -164,11 +164,15 @@ task copyFmppTemplatesFromCalciteCore(type: Copy) { | |
into "${project.buildDir}/templates-fmpp" | ||
filter{ | ||
line -> | ||
line.replace('import org.apache.calcite.', 'import org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.') | ||
line.replace('import org.apache.calcite.', 'import org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.') | ||
} | ||
filter{ | ||
line -> | ||
line.replace('import static org.apache.calcite.', 'import static org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.') | ||
line.replace('import static org.apache.calcite.', 'import static org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.') | ||
} | ||
filter{ | ||
line -> | ||
line.replace('import com.google.common.', 'import org.apache.beam.vendor.calcite.v1_40_0.com.google.common.') | ||
Comment on lines
166
to
+175
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. For better readability and a minor performance improvement, these three separate
|
||
} | ||
} | ||
|
||
|
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
This hunk introduces a logic change that seems unrelated to the Calcite version upgrade. The condition for throwing a
GradleException
when a required Java version is missing has been changed. While this change might be desirable, including it in a large dependency upgrade PR makes it harder to review and understand its impact. It would be better to extract this logic change into a separate, focused pull request. This will improve clarity and make the history easier to follow.