You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "geyanggang (via GitHub)" <gi...@apache.org> on 2026/06/02 08:24:49 UTC

[PR] [#11350] improvement(deps): Upgrade h2 database to 2.2.224 [gravitino]

geyanggang opened a new pull request, #11351:
URL: https://github.com/apache/gravitino/pull/11351

   
   
   ### What changes were proposed in this pull request?
   
   1. Upgrade h2 from 1.4.200 to 2.2.224 in libs.versions.toml.
   2. Fix implicit JOIN syntax in `TagMetadataObjectRelBaseSQLProvider` — change `A JOIN B JOIN C ON ...` to `A JOIN B ON ... JOIN C ON ...` to comply with H2 2.x strict SQL parsing. This aligns with the existing PostgreSQL provider implementation.
   
   ### Why are the changes needed?
   
   The h2 1.4.200 is outdated and no longer maintained. Upgrading to 2.2.224 improves stability. The JOIN syntax fix is required because H2 2.x enforces standard SQL JOIN semantics where each JOIN must have its own ON clause.
   
   Fix: #11350 
   
   ### Does this PR introduce _any_ user-facing change?
   
   No. H2 is used as the default embedded storage backend for development/testing. Production deployments typically use MySQL or PostgreSQL.
   
   ### How was this patch tested?
   
   - `./gradlew :core:test -PskipITs` — all tests passed
   - `./gradlew :maintenance:updaters:test :maintenance:optimizer:test -PskipITs` — passed
   - `./gradlew :authorizations:authorization-common:test -PskipITs` — passed
   - `./gradlew :clients:client-java:test -PskipITs` — passed
   - `./gradlew :iceberg:iceberg-rest-server:test -PskipITs` — passed
   


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#11350] improvement(deps): Upgrade h2 database to 2.2.224 [gravitino]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #11351:
URL: https://github.com/apache/gravitino/pull/11351#issuecomment-4601489832

   <!-- coverage-report -->
   ### Code Coverage Report
   |Overall Project|66.78% **`+0.03%`**|:green_circle:|
   |:-|:-|:-:|
   |Files changed|95.51%|:green_circle:|
   <br>
   
   |Module|Coverage||
   |:-|:-|:-:|
   |aliyun|1.72%|:red_circle:|
   |api|46.82%|:green_circle:|
   |authorization-common|85.96%|:green_circle:|
   |aws|3.66%|:red_circle:|
   |azure|2.47%|:red_circle:|
   |catalog-common|10.04%|:red_circle:|
   |catalog-fileset|80.33%|:green_circle:|
   |catalog-glue|66.08%|:green_circle:|
   |catalog-hive|79.55%|:green_circle:|
   |catalog-jdbc-clickhouse|80.02%|:green_circle:|
   |catalog-jdbc-common|45.31%|:green_circle:|
   |catalog-jdbc-doris|80.28%|:green_circle:|
   |catalog-jdbc-hologres|54.03%|:green_circle:|
   |catalog-jdbc-mysql|79.23%|:green_circle:|
   |catalog-jdbc-oceanbase|78.38%|:green_circle:|
   |catalog-jdbc-postgresql|82.29%|:green_circle:|
   |catalog-jdbc-starrocks|78.51%|:green_circle:|
   |catalog-kafka|77.01%|:green_circle:|
   |catalog-lakehouse-generic|44.89%|:green_circle:|
   |catalog-lakehouse-hudi|79.1%|:green_circle:|
   |catalog-lakehouse-iceberg|85.66%|:green_circle:|
   |catalog-lakehouse-paimon|79.29%|:green_circle:|
   |catalog-model|77.72%|:green_circle:|
   |cli|44.51%|:green_circle:|
   |client-java|77.91%|:green_circle:|
   |common|49.99%|:green_circle:|
   |core|82.49% **`+0.01%`**|:green_circle:|
   |filesystem-hadoop3|76.97%|:green_circle:|
   |flink|0.0%|:red_circle:|
   |flink-common|41.2%|:green_circle:|
   |flink-runtime|0.0%|:red_circle:|
   |gcp|14.12%|:red_circle:|
   |hadoop-common|10.39%|:red_circle:|
   |hive-metastore-common|53.26%|:green_circle:|
   |iceberg-common|56.75%|:green_circle:|
   |iceberg-rest-server|72.26% **`+0.49%`**|:green_circle:|
   |idp-basic|85.99%|:green_circle:|
   |integration-test-common|0.0%|:red_circle:|
   |jobs|66.17%|:green_circle:|
   |lance-common|20.83%|:red_circle:|
   |lance-rest-server|60.27%|:green_circle:|
   |lineage|53.02%|:green_circle:|
   |optimizer|82.87%|:green_circle:|
   |optimizer-api|21.95%|:red_circle:|
   |server|85.73%|:green_circle:|
   |server-common|73.13%|:green_circle:|
   |spark|32.79%|:red_circle:|
   |spark-common|39.75%|:red_circle:|
   |trino-connector|39.44%|:red_circle:|
   
   <details>
   <summary>Files</summary>
   
   |Module|File|Coverage||
   |:-|:-|:-|:-:|
   |core|[TagMetadataObjectRelBaseSQLProvider.java](https://github.com/geyanggang/gravitino/blob/98f3a29ee424c6c7b048fd309c4c73a2fc5bbeae/core/src/main/java/org/apache/gravitino/storage/relational/mapper/provider/base/TagMetadataObjectRelBaseSQLProvider.java)|100.0%|:green_circle:|
   |iceberg-rest-server|[IcebergCleanupJobBaseSQLProvider.java](https://github.com/geyanggang/gravitino/blob/98f3a29ee424c6c7b048fd309c4c73a2fc5bbeae/iceberg/iceberg-rest-server/src/main/java/org/apache/gravitino/iceberg/service/cleanup/mapper/provider/base/IcebergCleanupJobBaseSQLProvider.java)|100.0%|:green_circle:|
   ||[IcebergCleanupJobSQLProviderFactory.java](https://github.com/geyanggang/gravitino/blob/98f3a29ee424c6c7b048fd309c4c73a2fc5bbeae/iceberg/iceberg-rest-server/src/main/java/org/apache/gravitino/iceberg/service/cleanup/mapper/IcebergCleanupJobSQLProviderFactory.java)|94.44%|:green_circle:|
   ||[IcebergCleanupJobStore.java](https://github.com/geyanggang/gravitino/blob/98f3a29ee424c6c7b048fd309c4c73a2fc5bbeae/iceberg/iceberg-rest-server/src/main/java/org/apache/gravitino/iceberg/service/cleanup/IcebergCleanupJobStore.java)|93.75%|:green_circle:|
   ||[IcebergCleanupJobMapper.java](https://github.com/geyanggang/gravitino/blob/98f3a29ee424c6c7b048fd309c4c73a2fc5bbeae/iceberg/iceberg-rest-server/src/main/java/org/apache/gravitino/iceberg/service/cleanup/mapper/IcebergCleanupJobMapper.java)|0.0%|:red_circle:|
   
   </details>


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#11350] improvement(deps): Upgrade h2 database to 2.2.224 [gravitino]

Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 merged PR #11351:
URL: https://github.com/apache/gravitino/pull/11351


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#11350] improvement(deps): Upgrade h2 database to 2.2.224 [gravitino]

Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on code in PR #11351:
URL: https://github.com/apache/gravitino/pull/11351#discussion_r3360835206


##########
maintenance/jobs/build.gradle.kts:
##########
@@ -91,6 +91,9 @@ tasks.withType(ShadowJar::class.java) {
   archiveClassifier.set("")
   mergeServiceFiles()
 
+  // Exclude Java 21 multi-release classes to avoid ASM compatibility issues with shadow plugin
+  exclude("META-INF/versions/21/**")

Review Comment:
   I see.



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#11350] improvement(deps): Upgrade h2 database to 2.2.224 [gravitino]

Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on PR #11351:
URL: https://github.com/apache/gravitino/pull/11351#issuecomment-4627826933

   @yuqi1129 please help to review this PR.


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#11350] improvement(deps): Upgrade h2 database to 2.2.224 [gravitino]

Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on code in PR #11351:
URL: https://github.com/apache/gravitino/pull/11351#discussion_r3360215316


##########
maintenance/jobs/build.gradle.kts:
##########
@@ -91,6 +91,9 @@ tasks.withType(ShadowJar::class.java) {
   archiveClassifier.set("")
   mergeServiceFiles()
 
+  // Exclude Java 21 multi-release classes to avoid ASM compatibility issues with shadow plugin
+  exclude("META-INF/versions/21/**")

Review Comment:
   What is change used for?



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#11350] improvement(deps): Upgrade h2 database to 2.2.224 [gravitino]

Posted by "geyanggang (via GitHub)" <gi...@apache.org>.
geyanggang commented on code in PR #11351:
URL: https://github.com/apache/gravitino/pull/11351#discussion_r3360273116


##########
maintenance/jobs/build.gradle.kts:
##########
@@ -91,6 +91,9 @@ tasks.withType(ShadowJar::class.java) {
   archiveClassifier.set("")
   mergeServiceFiles()
 
+  // Exclude Java 21 multi-release classes to avoid ASM compatibility issues with shadow plugin
+  exclude("META-INF/versions/21/**")

Review Comment:
   `H2 2.2.224` is a multi-release JAR that includes `Utils21.class` compiled with Java 21 (class file major version 65). The shadow plugin 8.1.1 uses ASM 9.5, which only supports up to Java 20 (major version 64). When shadow processes the fat JAR, it scans all class files including those under `META-INF/versions/21/`, causing the build to fail with `Unsupported class file major version 65`. Excluding this directory fixes the build — the Java 21 specific classes are optional optimizations and are not loaded at runtime on JDK 17.



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org