mchades commented on code in PR #14355: URL: https://github.com/apache/gravitino/pull/14355#discussion_r4581815233
########## gradle/libs.versions.toml: ########## @@ -181,7 +181,10 @@ datanucleus-jdo = "3.2.0-m3" hudi = "0.15.0" google-auth = "1.28.0" aliyun-credentials = "0.3.12" -aliyun-sdk-oss = "3.10.2" +# hadoop-project 3.3.6 manages aliyun-sdk-oss at 3.13.0 and Iceberg 1.11 OSSFileIO is +# compiled against the 3.13.0 OSSClient#deleteObject signature; 3.10.2 throws +# NoSuchMethodError on OSS deletes. Review Comment: Iceberg 1.11.0 compiles against OSS SDK 3.18.5, and `OSS.deleteObject(String, String)` already returned `VoidResult` in 3.12.0. Please update the PR description to reflect this as well. [Iceberg version catalog](https://github.com/apache/iceberg/blob/apache-iceberg-1.11.0/gradle/libs.versions.toml#L25) · [OSS 3.12.0 interface](https://github.com/aliyun/aliyun-oss-java-sdk/blob/3.12.0/src/main/java/com/aliyun/oss/OSS.java#L1313) ```suggestion # Match Hadoop 3.3.6. Iceberg 1.11.0 expects OSS.deleteObject(String, String) # to return VoidResult. SDK 3.10.2 returns void and fails to link on delete. ``` ########## gradle/libs.versions.toml: ########## @@ -181,7 +181,10 @@ datanucleus-jdo = "3.2.0-m3" hudi = "0.15.0" google-auth = "1.28.0" aliyun-credentials = "0.3.12" -aliyun-sdk-oss = "3.10.2" +# hadoop-project 3.3.6 manages aliyun-sdk-oss at 3.13.0 and Iceberg 1.11 OSSFileIO is +# compiled against the 3.13.0 OSSClient#deleteObject signature; 3.10.2 throws +# NoSuchMethodError on OSS deletes. +aliyun-sdk-oss = "3.13.0" Review Comment: The Spark and Flink guides still tell users to install SDK 3.10.2 on the client classpath. I reproduced the same `NoSuchMethodError` with their documented Iceberg 1.11.0 runtimes for Spark 3.5 and Flink 1.20. Could we update the guides in a separate docs change to match the SDK to the client's Iceberg version? [Spark OSS setup](https://github.com/apache/gravitino/blob/8a0ad4a7e7644a11a0740f6dfd894f05c4974130/docs/spark-connector/spark-catalog-iceberg.md#L263) · [Flink OSS setup](https://github.com/apache/gravitino/blob/8a0ad4a7e7644a11a0740f6dfd894f05c4974130/docs/flink-connector/flink-catalog-iceberg.md#L134) -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
