You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "Copilot (via GitHub)" <gi...@apache.org> on 2025/10/09 18:42:53 UTC
Re: [PR] Refactor set operators to allow multiple children for UNION / UNION ALL [pinot]
Copilot commented on code in PR #16990:
URL: https://github.com/apache/pinot/pull/16990#discussion_r2417670629
##########
pinot-query-runtime/src/test/java/org/apache/pinot/query/runtime/queries/QueryRunnerTestBase.java:
##########
@@ -318,8 +321,8 @@ protected static Object canonicalizeValue(ColumnDataType columnDataType, Object
throw new RuntimeException(e);
}
}
- assertTrue(value instanceof int[],
- "Got unexpected value type: " + value.getClass() + " for INT_ARRAY column, expected: int[] or JdbcArray");
+ assertTrue(value instanceof int[] || value instanceof List, "Got unexpected value type: " + value.getClass()
+ + " for INT_ARRAY column, expected: int[], List, or JdbcArray");
Review Comment:
The assertion message should be updated to reflect that `JdbcArray` is also handled earlier in the method, making the current message misleading about the complete set of expected types.
```suggestion
+ " for INT_ARRAY column, expected: int[] or List (JdbcArray is handled above)");
```
--
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: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org