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/06/11 06:12:02 UTC

[PR] [#11592] fix(spark-connector): Fix INSERT into Glue Iceberg tables with time-based partition transforms [gravitino]

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

   ### What changes were proposed in this pull request?
   
   Override `loadFunction` in `GravitinoGlueCatalog` to delegate to the Iceberg `SparkCatalog`, and add `testIcebergPartitions` to `SparkCommonIT` for Glue integration test.
   
   ### Why are the changes needed?
   
   Fix: #11592
   
   `GravitinoGlueCatalog` didn't override `loadFunction`, so Spark couldn't resolve Iceberg built-in partition functions (`days`, `hours`, `months`, `years`) during INSERT planning.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Added `testIcebergPartitions` to `SparkCommonIT` and enabled it in `SparkGlueCatalogIT`. Verified against real AWS Glue (`SparkAwsGlueCatalogIT35`).


-- 
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] [#11592] fix(spark-connector): Fix INSERT into Glue Iceberg tables with time-based partition transforms [gravitino]

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

   <!-- coverage-report -->
   ### Code Coverage Report
   |Overall Project|66.96% **`+0.02%`**|:green_circle:|
   |:-|:-|:-:|
   |Files changed|73.58%|: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.4%|:red_circle:|
   |catalog-fileset|80.23%|:green_circle:|
   |catalog-glue|66.91%|:green_circle:|
   |catalog-hive|79.44%|:green_circle:|
   |catalog-jdbc-clickhouse|80.02%|:green_circle:|
   |catalog-jdbc-common|44.22%|: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|58.53%|:green_circle:|
   |catalog-lakehouse-hudi|79.1%|:green_circle:|
   |catalog-lakehouse-iceberg|85.79%|:green_circle:|
   |catalog-lakehouse-paimon|79.15%|:green_circle:|
   |catalog-model|77.72%|:green_circle:|
   |cli|44.51%|:green_circle:|
   |client-java|78.02% **`+0.47%`**|:green_circle:|
   |common|49.9%|:green_circle:|
   |core|82.38%|:green_circle:|
   |filesystem-hadoop3|77.27%|:green_circle:|
   |flink|0.0%|:red_circle:|
   |flink-common|45.72%|:green_circle:|
   |flink-runtime|0.0%|:red_circle:|
   |gcp|14.12%|:red_circle:|
   |hadoop-common|10.39%|:red_circle:|
   |hive-metastore-common|53.9%|:green_circle:|
   |iceberg-common|57.41%|:green_circle:|
   |iceberg-rest-server|74.0%|:green_circle:|
   |idp-basic|86.18%|:green_circle:|
   |integration-test-common|0.0%|:red_circle:|
   |jobs|66.17%|:green_circle:|
   |lance-common|20.79%|:red_circle:|
   |lance-rest-server|60.54%|:green_circle:|
   |lineage|53.02%|:green_circle:|
   |optimizer|82.95%|:green_circle:|
   |optimizer-api|21.95%|:red_circle:|
   |server|85.87%|:green_circle:|
   |server-common|73.28%|:green_circle:|
   |spark|28.57%|:red_circle:|
   |spark-common|41.66% **`+0.18%`**|:green_circle:|
   |trino-connector|40.13%|:green_circle:|
   
   <details>
   <summary>Files</summary>
   
   |Module|File|Coverage||
   |:-|:-|:-|:-:|
   |client-java|[RelationalTable.java](https://github.com/diqiu50/gravitino/blob/bd4e0c5de156cff12a2d1930f06b1bf81bcd67f6/clients/client-java/src/main/java/org/apache/gravitino/client/RelationalTable.java)|95.1%|:green_circle:|
   ||[GenericSchema.java](https://github.com/diqiu50/gravitino/blob/bd4e0c5de156cff12a2d1930f06b1bf81bcd67f6/clients/client-java/src/main/java/org/apache/gravitino/client/GenericSchema.java)|74.19%|:green_circle:|
   |spark-common|[GravitinoGlueCatalog.java](https://github.com/diqiu50/gravitino/blob/bd4e0c5de156cff12a2d1930f06b1bf81bcd67f6/spark-connector/spark-common/src/main/java/org/apache/gravitino/spark/connector/glue/GravitinoGlueCatalog.java)|45.57%|: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] [#11592] fix(spark-connector): Fix INSERT into Glue Iceberg tables with time-based partition transforms [gravitino]

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


-- 
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] [#11592] fix(spark-connector): Fix INSERT into Glue Iceberg tables with time-based partition transforms [gravitino]

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


##########
spark-connector/spark-common/src/test/java/org/apache/gravitino/spark/connector/integration/test/iceberg/SparkIcebergCatalogIT.java:
##########
@@ -125,6 +124,72 @@ protected boolean supportsUpdateColumnPosition() {
     return true;
   }
 
+  @Override
+  protected boolean supportsIcebergPartitionTransforms() {
+    return true;
+  }
+
+  @Override
+  protected void testIcebergPartitions() {
+    Map<String, String> partitionPaths = new java.util.HashMap<>();

Review Comment:
   `testIcebergPartitions()` overrides the superclass `@Test` method but does not declare `@Test` (or `@EnabledIf`) itself. JUnit 5 will not treat this overriding method as a test, so the Iceberg partition-transform coverage can be silently skipped.



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