You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by GitBox <gi...@apache.org> on 2022/02/10 09:53:06 UTC

[GitHub] [calcite] JiajunBernoulli commented on a change in pull request #2710: [CALCITE-4997] Keep APPROX_COUNT_DISTINCT in some SqlDialects

JiajunBernoulli commented on a change in pull request #2710:
URL: https://github.com/apache/calcite/pull/2710#discussion_r803490200



##########
File path: core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java
##########
@@ -6043,6 +6043,25 @@ private void checkLiteral2(String expression, String expected) {
     sql.ok(expected);
   }
 
+  @Test void testSelectApproxCountDistinct() {
+    final String query = "select approx_count_distinct(\"product_id\") from \"product\"";
+    final String expectedAccurate = "SELECT COUNT(DISTINCT \"product_id\")\n"

Review comment:
       You're right. I'll pay attention later, but I won't change it this time.
   **Accurate** and **Exact** are synonymous, so they do not affect understanding. 
   




-- 
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: commits-unsubscribe@calcite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org