vineetgarg02 commented on a change in pull request #1907: [CALCITE-3909]
RelMdMinRowCount doesn't take into account UNION DISTINCT
URL: https://github.com/apache/calcite/pull/1907#discussion_r406970508
##########
File path: core/src/test/java/org/apache/calcite/test/RelMetadataTest.java
##########
@@ -614,6 +614,13 @@ private void checkExchangeRowCount(RelNode rel, double
expected, double expected
checkRowCount(sql, EMP_SIZE + DEPT_SIZE, 0D, 140D);
}
+ @Test void testRowCountUnionDistinct() {
+ final String sql = "select x from (values 'a', 'b') as t(x)\n"
Review comment:
`select x from values ('a', 'a') UNION DISTINCT select x from values ('a',
'a')` should produce one row right?
----------------------------------------------------------------
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