jcamachor commented on a change in pull request #1174: [CALCITE-3001] Upgrade
to Apache Druid 0.14.0-incubating
URL: https://github.com/apache/calcite/pull/1174#discussion_r276703659
##########
File path: druid/src/test/java/org/apache/calcite/test/DruidAdapterIT.java
##########
@@ -3058,15 +3058,15 @@ private void testCountWithApproxDistinct(boolean
approx, String sql, String expe
+ "(count(distinct \"user_id\") * 2) from \"wiki\"";
wikiApprox(sql)
.queryContains(druidChecker(druid))
- .returnsUnordered("EXPR$0=-10590");
+ .returnsUnordered("EXPR$0=100");
// Change COUNT(DISTINCT ...) to APPROX_COUNT_DISTINCT(...) and get
// same result even if approximation is off by default.
final String sql2 = "select (approx_count_distinct(\"user_id\") + 100) - "
+ "(approx_count_distinct(\"user_id\") * 2) from \"wiki\"";
sql(sql2, WIKI)
.queryContains(druidChecker(druid))
- .returnsUnordered("EXPR$0=-10590");
+ .returnsUnordered("EXPR$0=100");
Review comment:
Is this change of result expected (same as above)?
----------------------------------------------------------------
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