ebyhr commented on code in PR #19083:
URL: https://github.com/apache/iceberg/pull/19083#discussion_r4655955369


##########
snowflake/src/main/java/org/apache/iceberg/snowflake/JdbcSnowflakeClient.java:
##########
@@ -236,7 +236,7 @@ public List<SnowflakeIdentifier> listDatabases() {
   @Override
   public List<SnowflakeIdentifier> listSchemas(SnowflakeIdentifier scope) {
     StringBuilder baseQuery = new StringBuilder("SHOW SCHEMAS");
-    String[] queryParams = null;
+    String[] queryParams = new String[0];

Review Comment:
   Mockito 5 no longer matches a `null` varargs array with 
`any(String[].class)`. An empty array behaves the same in `QueryHarness.query` 
and lets the test use a single stub.



-- 
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]

Reply via email to