kasakrisz commented on code in PR #6082:
URL: https://github.com/apache/hive/pull/6082#discussion_r2381559613
##########
ql/src/test/org/apache/hadoop/hive/ql/optimizer/calcite/rules/TestHivePointLookupOptimizerRule.java:
##########
@@ -520,4 +521,27 @@ public void testSameDecimalLiteralDifferentPrecision() {
System.out.println(condition);
assertEquals("IN($1, 10000:DECIMAL(19, 5), 11000:DECIMAL(19, 5))",
condition.toString());
}
+
+ @Test
+ public void testNothingToBeMergedInOrExpressionAndOperandOrderIsUnchanged() {
Review Comment:
Sorry for the late response:
There are more than one test cases in TestHivePointLookupOptimizerRule to
cover this:
* bail out: testSimpleCase, testCaseInAndEqualsWithConstantsOfDifferentType,
testSameVarcharAndNullLiterals, testRecursionIsNotObstructed
* do the merge: testSameVarcharLiteralDifferentPrecision,
testSameDecimalLiteralDifferentPrecision, testInExprsMergedMultipleOverlap,
testInExprsAndEqualsMerged
And the q tests which q.out files affected by this PR
--
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]