ebyhr commented on code in PR #12456: URL: https://github.com/apache/iceberg/pull/12456#discussion_r1986445605
########## spark/v3.5/spark-extensions/src/test/java/org/apache/iceberg/spark/extensions/TestAddFilesProcedure.java: ########## @@ -830,6 +830,44 @@ public void invalidDataImportPartitioned() { .hasMessageContaining("that matches the partition columns"); } + @TestTemplate + public void partitionColumnCountMismatchInFilter() { + createPartitionedHiveTable(); + + createIcebergTable( + "id Integer, name String, dept String, subdept String", "PARTITIONED BY (id)"); + assertThatThrownBy( + () -> + scalarSql( + "CALL %s.system.add_files('%s', '%s', map('id', '0','dept', '1'))", Review Comment: ```suggestion "CALL %s.system.add_files('%s', '%s', map('id', '0', 'dept', '1'))", ``` -- 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