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

ClickHouse LIMIT BY 语句报错 #4110

Closed
kkrrsq opened this issue Dec 24, 2020 · 1 comment
Closed

ClickHouse LIMIT BY 语句报错 #4110

kkrrsq opened this issue Dec 24, 2020 · 1 comment
Milestone

Comments

@kkrrsq
Copy link

kkrrsq commented Dec 24, 2020

druid版本:1.2.4

错误日志:

Cause: java.sql.SQLException: sql injection violation, dbType clickhouse, , druid-version 1.2.4, syntax error: syntax error, error in :'IT ? BY a, pos 297, line 11, column 18, token BY : SELECT

    a,
    b,
    sum(c) as c
    FROM table
    WHERE
    timestamp BETWEEN toDateTime(?) AND toDateTime(?)
      
    GROUP BY a, b
    ORDER BY c
    LIMIT ? BY a

clickhouse limit by 说明文档:https://clickhouse.tech/docs/en/sql-reference/statements/select/limit-by/

@wenshao 大佬,可以支持下 clickhouse 的 limit by 语法吗?谢谢

@wenshao wenshao added this to the 1.2.5 milestone Dec 25, 2020
@wenshao
Copy link
Member

wenshao commented Feb 17, 2021

https://github.com/alibaba/druid/releases/tag/1.2.5
问题已修复,请用新版本

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

No branches or pull requests

2 participants