huaxingao commented on code in PR #11439: URL: https://github.com/apache/iceberg/pull/11439#discussion_r1830369497
########## spark/v3.5/spark-extensions/src/test/java/org/apache/iceberg/spark/extensions/TestRewriteDataFilesProcedure.java: ########## @@ -69,6 +69,60 @@ public void removeTable() { sql("DROP TABLE IF EXISTS %s", tableName(QUOTED_SPECIAL_CHARS_TABLE_NAME)); } + @TestTemplate + public void testFailsByCaseSensitiveWhereSql() { + createTable(); + insertData(10); + sql("set spark.sql.caseSensitive=true"); + assertThatThrownBy( + () -> + sql( + "CALL %s.system.rewrite_data_files(table=>'%s', where=>'C1 > 0')", + catalogName, tableIdent)) Review Comment: When `spark.sql.caseSensitive` is set to true, this will fail at the Spark analyzer regardless of the changes in this PR. -- 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