felixloesing commented on code in PR #13776:
URL: https://github.com/apache/gluten/pull/13776#discussion_r4758599376
##########
gluten-iceberg/src/test/scala/org/apache/gluten/execution/IcebergSuite.scala:
##########
@@ -669,6 +669,40 @@ abstract class IcebergSuite extends
WholeStageTransformerSuite {
}
}
+ test("iceberg scan with no data files") {
+ withTable("iceberg_empty", "iceberg_empty_orc", "iceberg_empty_avro",
"iceberg_pruned") {
+ spark.sql("create table iceberg_empty (id int, name string) using
iceberg")
+ runQueryAndCompare("select * from iceberg_empty") {
+ checkGlutenPlan[IcebergScanTransformer]
+ }
+
+ // The default write format doesn't matter when there is nothing to
read; scans that plan
+ // files still validate their real format.
Review Comment:
Added. The scan of the Avro table with a row is checked to have no
IcebergScanTransformer.
--
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]