ZachDischner commented on issue #7774: URL: https://github.com/apache/iceberg/issues/7774#issuecomment-1638564485
I am seeing this behavior specifically when attempting to query the `.files` metadata table in Iceberg. When running against a table created with Iceberg 1.1.0, querying the `partitions` struct does not seem to work when I upgrade to spark 3.4. ``` spark-shell --packages "org.apache.spark:spark-sql_2.13:3.3.1,org.apache.iceberg:iceberg-spark-runtime-3.4_2.12:1.3.0,org.apache.iceberg:iceberg-aws:1.1.0,org.apache.iceberg:iceberg-core:1.1.0 <--conf for existing Iceberg 1.1.0 table> ``` Example query: ``` SELECT * FROM catalog.db.table.files where partition.myPartitionName = ... 23/07/13 13:26:48 WARN SparkScanBuilder: Failed to check if IsNotNull(partition.myPartitionName) can be pushed down: Cannot find field 'partition.myPartitionName' in struct: struct<> 23/07/13 13:26:48 WARN SparkScanBuilder: Failed to check if GreaterThanOrEqual(partition.myPartitionName,2023-07-03T00:00:00Z) can be pushed down: Cannot find field 'partition.myPartitionName' in struct: struct<> ``` https://iceberg.apache.org/docs/latest/spark-queries/#files - `partition` is a struct. It appears as though we cannot push down predicates in spark to query against this field. This impacts reading and writing. -- 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]
