Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CALCITE-6879] Dialect support APPROX_DISTINCT_COUNT for more dialects #4234

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

xuzifu666
Copy link
Member

@xuzifu666 xuzifu666 force-pushed the dialect_approx_support branch from a65991d to 9ac1a7a Compare March 9, 2025 13:57
@@ -8099,14 +8099,24 @@ private void checkLiteral2(String expression, String expected) {
+ "FROM \"foodmart\".\"product\"";
final String expectedStarRocksSql = "SELECT APPROX_COUNT_DISTINCT(`product_id`)\n"
+ "FROM `foodmart`.`product`";
final String expectedMssql = "SELECT APPROX_COUNT_DISTINCT([product_id])\n"
+ "FROM [foodmart].[product]";
final String expectedPhoenix = "SELECT APPROX_COUNT_DISTINCT(\"product_id\")\n"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this exactly the same as ApproxQuota above?
Is there a benefit having two identical strings?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants