liyafan82 commented on a change in pull request #2287:
URL: https://github.com/apache/calcite/pull/2287#discussion_r535191253
##########
File path: core/src/main/java/org/apache/calcite/util/Pair.java
##########
@@ -185,7 +185,8 @@ public Pair(T1 left, T2 right) {
final int size;
if (strict) {
if (ks.size() != vs.size()) {
- throw new AssertionError();
+ throw new IllegalArgumentException(
+ "The size of two lists to be combined is required to be equal.");
Review comment:
size -> sizes
is -> are
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]