rubenada commented on a change in pull request #1937:
URL: https://github.com/apache/calcite/pull/1937#discussion_r412859778
##########
File path:
core/src/test/java/org/apache/calcite/test/enumerable/EnumerableJoinTest.java
##########
@@ -258,6 +264,85 @@
.returnsUnordered("empid=100\nempid=110\nempid=150\nempid=200");
}
+ private static final SqlCollation NO_CASE =
+ new SqlCollation(CalciteSystemProperty.DEFAULT_COLLATION.value() +
"-NO_CASE",
+ SqlCollation.Coercibility.IMPLICIT) {
+ @Override public Comparator getComparator() {
+ return String.CASE_INSENSITIVE_ORDER;
+ }
+ @Override public Expression getComparatorExpression() {
+ return Expressions.field(Expressions.constant("", String.class),
Review comment:
Not sure if there is a way to express `String.CASE_INSENSITIVE_ORDER` as
an Expression... (for the moment using `"".CASE_INSENSITIVE_ORDER` as
workaround)
----------------------------------------------------------------
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]