Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 4.6k
[BEAM-13616][BEAM-13646] Update vendored calcite 1.28.0 with protobuf 3.19.2#16473
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -16,21 +16,35 @@ | ||
| * limitations under the License. | ||
| */ | ||
| /** | ||
| * Vendored version of calcite. | ||
| * | ||
| * To upgrade: | ||
| * 1. Use mvn dependency:tree and/or https://search.maven.org/search?q=g:org.apache.calcite%20AND%20a:calcite-core | ||
| * to determine dependency tree. You may need to search for optional transitive dependencies | ||
| * and determine if they need to be added or upgraded (e.g. protobuf) | ||
| * 3. Validate built artifacts by running linkage tool | ||
Member 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. I think the number here should be 2. and not 3. | ||
| * (https://github.com/apache/beam/tree/master/vendor#how-to-validate-the-vendored-dependencies) | ||
| * and unit and integration tests in a PR. | ||
| */ | ||
| plugins { id 'org.apache.beam.vendor-java' } | ||
| description = "Apache Beam :: Vendored Dependencies :: Calcite 1.28.0" | ||
| group = "org.apache.beam" | ||
| version = "0.1" | ||
| version = "0.2" | ||
| def calcite_version = "1.28.0" | ||
emilymye marked this conversation as resolved.
Outdated
Uh oh!There was an error while loading. Please reload this page. | ||
| def avatica_version = "1.19.0" | ||
| def protobuf_version = "3.19.2" | ||
| def prefix = "org.apache.beam.vendor.calcite.v1_28_0" | ||
| List<String> packagesToRelocate = [ | ||
| "com.esri", | ||
| "com.fasterxml", | ||
| "com.google.common", | ||
| "com.google.gson", | ||
| "com.google.protobuf", | ||
| "com.google.thirdparty", | ||
| "com.google.uzaygezen", | ||
| @@ -52,6 +66,12 @@ vendorJava( | ||
| "org.apache.calcite:calcite-core:$calcite_version", | ||
| "org.apache.calcite:calcite-linq4j:$calcite_version", | ||
| "org.apache.calcite.avatica:avatica-core:$avatica_version", | ||
| // BEAM-13616: Override the version of protobuf to patch a security vulnerability. | ||
| // This override can be removed once we upgrade to a newer version of calcite that | ||
| // depends on protobuf >= 3.19.2. | ||
| "com.google.protobuf:protobuf-java:$protobuf_version", | ||
emilymye marked this conversation as resolved.
Outdated
Uh oh!There was an error while loading. Please reload this page. | ||
| "com.google.protobuf:protobuf-java-util:$protobuf_version", | ||
| ], | ||
| runtimeDependencies: [ | ||
| library.java.slf4j_api, | ||
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.
Thank you for documenting this!