huaxingao commented on code in PR #12494: URL: https://github.com/apache/iceberg/pull/12494#discussion_r2048274722
########## spark/v4.0/spark-extensions/src/test/java/org/apache/iceberg/spark/extensions/TestSystemFunctionPushDownInRowLevelOperations.java: ########## @@ -260,7 +267,12 @@ private void checkUpdate(RowLevelOperationMode mode, String cond) { DistributionMode.NONE.modeName()); Dataset<Row> changeDF = spark.table(tableName).where(cond).limit(2).select("id"); - changeDF.coalesce(1).writeTo(tableName(CHANGES_TABLE_NAME)).create(); + try { + changeDF.coalesce(1).writeTo(tableName(CHANGES_TABLE_NAME)).create(); + } catch (TableAlreadyExistsException e) { + throw new AlreadyExistsException( Review Comment: if I re-throw without doing anything ``` try { changeDF.coalesce(1).writeTo(tableName(CHANGES_TABLE_NAME)).create(); } catch (TableAlreadyExistsException e) { throw e; } ``` I got `Unhandled exception: org.apache.spark.sql.catalyst.analysis.TableAlreadyExistsException` -- 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