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

APPROX_PERCENTILE_CONT is not supported in distributed table #1405

Open
jiacai2050 opened this issue Dec 26, 2023 · 0 comments
Open

APPROX_PERCENTILE_CONT is not supported in distributed table #1405

jiacai2050 opened this issue Dec 26, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@jiacai2050
Copy link
Contributor

jiacai2050 commented Dec 26, 2023

Describe this problem

Query contains APPROX_PERCENTILE_CONT function will throw errors.

Server version

main

Steps to reproduce

CREATE TABLE `demo` (
    `name` string TAG,
    `value` double NOT NULL,
    `t` timestamp NOT NULL,
    timestamp KEY (t))
PARTITION BY RANDOM PARTITIONS 4
ENGINE=Analytic
  with
(enable_ttl="false");

INSERT INTO demo (t, name, value)
    VALUES (1651737067000, "ceresdb", 100)
    ,(1651737067000, "ceresdb1", 110)
    ,(1651737067000, "ceresdb2", 120);
;
 analyze select time_bucket(t, "PT1M") as a,  approx_percentile_cont(value, 0.9) as b from   demo
where name = "ceresdb"
and t >= 1651737067000 
group by time_bucket(t, "PT1M")
;

Expected behavior

No error.

Additional Information

No response

@jiacai2050 jiacai2050 added the bug Something isn't working label Dec 26, 2023
jiacai2050 added a commit that referenced this issue Dec 27, 2023
## Rationale
See #1405

## Detailed Changes
Disable percentile functions

## Test Plan
CI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant