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

histogram函数查询报错 #1949

Open
xiaochaoren1 opened this issue Dec 2, 2024 · 2 comments
Open

histogram函数查询报错 #1949

xiaochaoren1 opened this issue Dec 2, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@xiaochaoren1
Copy link

xiaochaoren1 commented Dec 2, 2024

相同的语句,clickhouse 查询成功,byconity 查询报错
复现步骤:

  1. 新建表 test_histogram,建表语句如下:
    CREATE TABLE flow_tag1.test_histogram
    (
    id UInt32,
    value Float64
    )
    ENGINE = CnchMergeTree
    ORDER BY id;
  2. 插入数据,语句如下:
    INSERT INTO test_histogram (id, value) VALUES
    (1, 1.5),
    (2, 2.3),
    (3, 3.7),
    (4, 4.1),
    (5, 5.6),
    (6, 6.8),
    (7, 7.2),
    (8, 8.9),
    (9, 9.0),
    (10, 10.5);
  3. 执行查询,语句如下:
    SELECT
    histogram(10)(if(value > 0, value, NULL)) AS xx,
    toTypeName(xx)
    FROM (database).test_histogram
  4. 结果截图:
    a. byconity 版本:21.8.7,报错
    image
    b. clickhouse 版本:23.8.7,不报错
    image
@xiaochaoren1 xiaochaoren1 added the bug Something isn't working label Dec 2, 2024
@xuhaitao23
Copy link

用的byconity版本是什么,有这个commit吗
img_v3_02h7_30398542-1029-45c5-a8ed-bf1d2364274g

@xiaochaoren1
Copy link
Author

xiaochaoren1 commented Dec 4, 2024

用的byconity版本是什么,有这个commit吗 img_v3_02h7_30398542-1029-45c5-a8ed-bf1d2364274g

v1.0.0,有这个commit

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

2 participants