rubenada commented on code in PR #6572:
URL: https://github.com/apache/hive/pull/6572#discussion_r3498404573
##########
ql/src/test/queries/clientpositive/decorrelate_semi_join.q:
##########
@@ -0,0 +1,17 @@
+DROP TABLE IF EXISTS `tab`;
+CREATE EXTERNAL TABLE `tab`(
+ `f1` string,
+ `f2` string,
+ `f3` string,
+ `f4` string,
+ `f5` string,
+ `f6` string);
+
+SELECT 1
+FROM tab a
+WHERE a.f4 IN ('1', '2')
Review Comment:
With this line we get the exception `java.lang.IndexOutOfBoundsException:
Index 3 out of bounds for length 1` (which is the original one described in the
ticket); without it we get a different (related) one `java.lang.AssertionError
at
org.apache.hadoop.hive.ql.parse.type.TypeCheckProcFactory$DefaultExprProcessor.getXpathOrFuncExprNodeDesc(TypeCheckProcFactory.java:881)`
, which is the same one as in the other new q file.
Both go away with the patch.
##########
ql/src/test/queries/clientpositive/decorrelate_semi_join.q:
##########
@@ -0,0 +1,17 @@
+DROP TABLE IF EXISTS `tab`;
+CREATE EXTERNAL TABLE `tab`(
+ `f1` string,
+ `f2` string,
+ `f3` string,
+ `f4` string,
+ `f5` string,
+ `f6` string);
+
+SELECT 1
+FROM tab a
+WHERE a.f4 IN ('1', '2')
+AND EXISTS (
+ SELECT 1
+ FROM tab b
+ WHERE a.f6 = b.f1 AND b.f3 IN (SELECT 1)
+);
Review Comment:
Ok, will do.
--
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]