nssalian commented on code in PR #15964:
URL: https://github.com/apache/iceberg/pull/15964#discussion_r3142959348
##########
spark/v4.0/spark/src/main/java/org/apache/iceberg/spark/SparkTableUtil.java:
##########
@@ -337,7 +337,7 @@ private static SparkPartition toSparkPartition(
serde.nonEmpty() || table.provider().nonEmpty(), "Partition format
should be defined");
String uri = Util.uriToString(locationUri.get());
- String format = serde.nonEmpty() ? serde.get() : table.provider().get();
+ String format = resolveFileFormat(table);
Review Comment:
Great catch. Will add this to resolve and clean it up too.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]