rubenada commented on a change in pull request #1566: [CALCITE-3482] Equality
of nested ROWs returns false for identical literal value
URL: https://github.com/apache/calcite/pull/1566#discussion_r344031861
##########
File path: core/src/test/resources/sql/struct.iq
##########
@@ -47,4 +47,40 @@ select distinct * from (values
!ok
+# [CALCITE-3482] Equality of nested ROWs returns false for identical literal
value
+select * from
+(values
+ (1, ROW(1,1)),
+ (2, ROW(2,2)),
+ (3, ROW(1,1)),
+ (4, ROW(2,2))) as t(id,struct)
+where t.struct = ROW(2,2);
++----+--------+
+| ID | STRUCT |
++----+--------+
+| 2 | {2, 2} |
+| 4 | {2, 2} |
++----+--------+
+(2 rows)
+
+!ok
+
+# [CALCITE-3482] Equality of nested ROWs returns false for identical literal
value
+select * from
+(values
+ (1, ROW(2, ROW(4,2))),
+ (2, ROW(2, ROW(4,4))),
+ (3, ROW(2, ROW(1,4))),
+ (4, ROW(2, ROW(4,4)))) as t(id,struct)
+where t.struct = ROW(2, ROW(4,4));
Review comment:
Sure, done.
----------------------------------------------------------------
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]
With regards,
Apache Git Services