ajantha-bhat commented on code in PR #4902:
URL: https://github.com/apache/iceberg/pull/4902#discussion_r907977911
##########
spark/v3.2/spark-extensions/src/test/java/org/apache/iceberg/spark/extensions/TestRewriteDataFilesProcedure.java:
##########
@@ -292,6 +329,13 @@ public void testRewriteDataFilesWithInvalidInputs() {
IllegalArgumentException.class, "Cannot parse predicates in where
option: col1 = 3",
() -> sql("CALL %s.system.rewrite_data_files(table => '%s', " +
"where => 'col1 = 3')", catalogName, tableIdent));
+
+ // Test for z_order with invalid column name
+ AssertHelpers.assertThrows("Should reject calls with error message",
+ IllegalArgumentException.class, "Cannot find field 'col1' in which is
specified in the ZOrder " +
Review Comment:
originally it was like that. @RussellSpitzer suggested to add the Zorder in
error message.
I am fine both the ways. I will revert it back.
--
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]