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

[PR] [#12707] improvement(trino-connector): Drop Trino 435-439 support [gravitino]

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

   ### What changes were proposed in this pull request?
   
   Removes support for Trino 435-439 and raises the minimum supported Trino version to 440. Deletes the `trino-connector-435-439` module and its version-segment adapter classes, and updates related build wiring, CI, and docs.
   
   ### Why are the changes needed?
   
   Trino 435-439 are outdated versions that are no longer worth maintaining.
   
   Fix #12707
   
   ### Does this PR introduce any user-facing change?
   
   Yes — the Trino connector's minimum supported version is now 440 (previously 435).
   
   ### How was this patch tested?
   
   `./gradlew spotlessApply` (no changes needed); Gradle config evaluated successfully (`:trino-connector:trino-connector:help`) confirming no dangling references to the removed module.


-- 
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] [#12707] improvement(trino-connector): Drop Trino 435-439 support [gravitino]

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

   <!-- coverage-report -->
   ### Code Coverage Report
   |Overall Project|68.46% **`+0.03%`**|:green_circle:|
   |:-|:-|:-:|
   |Files changed|79.13%|:green_circle:|
   <br>
   
   |Module|Coverage||
   |:-|:-|:-:|
   |aliyun|19.74%|:red_circle:|
   |api|52.07%|:green_circle:|
   |authorization-common|85.96%|:green_circle:|
   |authorization-ranger|4.38%|:red_circle:|
   |aws|53.54%|:green_circle:|
   |azure|32.1%|:red_circle:|
   |catalog-common|9.9%|:red_circle:|
   |catalog-fileset|80.21%|:green_circle:|
   |catalog-glue|69.24%|:green_circle:|
   |catalog-hive|82.96%|:green_circle:|
   |catalog-jdbc-common|45.69%|:green_circle:|
   |catalog-jdbc-doris|82.44%|:green_circle:|
   |catalog-jdbc-mysql|79.33%|:green_circle:|
   |catalog-jdbc-postgresql|83.39%|:green_circle:|
   |catalog-jdbc-starrocks|79.16%|:green_circle:|
   |catalog-kafka|76.99%|:green_circle:|
   |catalog-lakehouse-generic|60.55%|:green_circle:|
   |catalog-lakehouse-hudi|79.1%|:green_circle:|
   |catalog-lakehouse-iceberg|85.86%|:green_circle:|
   |catalog-lakehouse-paimon|84.26%|:green_circle:|
   |catalog-model|77.99%|:green_circle:|
   |cli|44.48%|:green_circle:|
   |client-java|77.44%|:green_circle:|
   |common|55.76%|:green_circle:|
   |core|83.55%|:green_circle:|
   |filesystem-hadoop3|76.45%|:green_circle:|
   |flink|0.0%|:red_circle:|
   |flink-common|50.29%|:green_circle:|
   |flink-runtime|0.0%|:red_circle:|
   |gcp|32.2%|:red_circle:|
   |hadoop-auth|68.0%|:green_circle:|
   |hadoop-common|17.84%|:red_circle:|
   |hive-metastore-common|53.4%|:green_circle:|
   |iceberg-aliyun-bundle|0.0%|:red_circle:|
   |iceberg-common|64.75%|:green_circle:|
   |iceberg-rest-server|75.61%|:green_circle:|
   |idp-basic|85.98%|:green_circle:|
   |integration-test-common|0.0%|:red_circle:|
   |jobs|62.92%|:green_circle:|
   |lance-common|32.63%|:red_circle:|
   |lance-rest-server|63.87%|:green_circle:|
   |lineage|53.02%|:green_circle:|
   |optimizer|83.17%|:green_circle:|
   |optimizer-api|21.95%|:red_circle:|
   |server|88.04%|:green_circle:|
   |server-common|80.5%|:green_circle:|
   |spark|28.57%|:red_circle:|
   |spark-common|48.92%|:green_circle:|
   |tencent|69.84%|:green_circle:|
   |trino-connector|47.44% **`+2.11%`**|:green_circle:|
   
   <details>
   <summary>Files</summary>
   
   |Module|File|Coverage||
   |:-|:-|:-|:-:|
   |trino-connector|[GravitinoConfig.java](https://github.com/diqiu50/gravitino/blob/f461be27c9b36d227c2bffe3390ee2f71b1a0430/trino-connector/trino-connector/src/main/java/org/apache/gravitino/trino/connector/GravitinoConfig.java)|85.71%|:green_circle:|
   ||[GravitinoConnectorFactory.java](https://github.com/diqiu50/gravitino/blob/f461be27c9b36d227c2bffe3390ee2f71b1a0430/trino-connector/trino-connector/src/main/java/org/apache/gravitino/trino/connector/GravitinoConnectorFactory.java)|67.74%|:green_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] [#12707] improvement(trino-connector): Drop Trino 435-439 support [gravitino]

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


##########
trino-connector/trino-connector/src/main/java/org/apache/gravitino/trino/connector/GravitinoConnectorFactory.java:
##########
@@ -51,7 +51,7 @@
 public class GravitinoConnectorFactory implements ConnectorFactory {
 
   private static final Logger LOG = Logger.get(GravitinoConnectorFactory.class);
-  private static final int MIN_SUPPORT_TRINO_SPI_VERSION = 435;
+  private static final int MIN_SUPPORT_TRINO_SPI_VERSION = 440;
   private static final int MAX_SUPPORT_TRINO_SPI_VERSION = Integer.MAX_VALUE;

Review Comment:
   The minimum supported Trino version was raised to 440 here, but the build default in `gradle.properties` still sets `minSupportedTrinoVersion` to 435. That means the default build of `:trino-connector:trino-connector` will still compile against Trino 435 unless overridden, which is inconsistent with the new minimum support policy and can mask incompatibilities.



##########
trino-connector/trino-connector/src/main/java/org/apache/gravitino/trino/connector/GravitinoConnectorFactory.java:
##########
@@ -51,7 +51,7 @@
 public class GravitinoConnectorFactory implements ConnectorFactory {
 
   private static final Logger LOG = Logger.get(GravitinoConnectorFactory.class);
-  private static final int MIN_SUPPORT_TRINO_SPI_VERSION = 435;
+  private static final int MIN_SUPPORT_TRINO_SPI_VERSION = 440;
   private static final int MAX_SUPPORT_TRINO_SPI_VERSION = Integer.MAX_VALUE;

Review Comment:
   The minimum supported Trino version changed (435 -> 440), but there is no unit test asserting that version validation rejects 439 and accepts 440. Please add a focused test that exercises `create(...)`/version validation with a mocked `ConnectorContext.getSpiVersion()` at the boundary values so this policy change is enforced by CI.



##########
trino-connector/integration-test/trino-test-tools/run_test_with_versions.sh:
##########
@@ -23,16 +23,16 @@
 #
 # Arguments:
 # --trino_versions_map: Space-separated list of "version:module" pairs.
-#                       Defaults to "435:trino-connector" if not provided.
+#                       Defaults to "440:trino-connector" if not provided.
 # --trino_test_args:    Arguments passed directly to the underlying test script.
 #
 # Example:
 # ./run_test_with_versions.sh \
-#   --trino_versions_map="435:trino-connector 478:trino-connector-470-478" \
+#   --trino_versions_map="440:trino-connector 478:trino-connector-470-478" \

Review Comment:
   This usage example references `trino-connector-470-478`, but that module/directory does not exist in the build (the repo has `trino-connector-473-478`). Copy/pasting this example will fail.
   
   This issue also appears on line 36 of the same file.



-- 
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] [#12707] improvement(trino-connector): Drop Trino 435-439 support [gravitino]

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


-- 
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