felixloesing commented on code in PR #13776:
URL: https://github.com/apache/gluten/pull/13776#discussion_r4744245207


##########
gluten-iceberg/src/main/scala/org/apache/iceberg/spark/source/GlutenIcebergSourceUtil.scala:
##########
@@ -262,7 +262,12 @@ object GlutenIcebergSourceUtil {
     }
 
     if (fileFormat == ReadFileFormat.UnknownFormat) {
-      throw new GlutenNotSupportException("Iceberg Only support parquet and 
orc file format.")
+      fileFormat = convertFileFormat(
+        FileFormat.fromString(
+          PropertyUtil.propertyAsString(
+            getTable(sparkScan).properties(),
+            TableProperties.DEFAULT_FILE_FORMAT,
+            TableProperties.DEFAULT_FILE_FORMAT_DEFAULT)))

Review Comment:
   Went with the simpler option. With no tasks we now return ParquetReadFormat 
without reading `write.format.default`, so there's nothing to parse and no new 
exception.



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

Reply via email to