pan3793 commented on code in PR #12494:
URL: https://github.com/apache/iceberg/pull/12494#discussion_r2048258320


##########
spark/v4.0/spark/src/main/java/org/apache/iceberg/spark/actions/RewriteDataFilesSparkAction.java:
##########
@@ -106,7 +106,7 @@ public class RewriteDataFilesSparkAction
   private boolean caseSensitive;
 
   RewriteDataFilesSparkAction(SparkSession spark, Table table) {
-    super(spark.cloneSession());
+    super(((org.apache.spark.sql.classic.SparkSession) spark).cloneSession());

Review Comment:
   the cast should be safe, in spark connect arch, the current iceberg spark 
connector is a side server plugin, it is not supposed to be invoked on the 
client side.



-- 
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: issues-unsubscr...@iceberg.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to