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

clickhosue 对json_contans函数不支持 #1

Open
qiujunlin opened this issue Aug 3, 2021 · 0 comments
Open

clickhosue 对json_contans函数不支持 #1

qiujunlin opened this issue Aug 3, 2021 · 0 comments

Comments

@qiujunlin
Copy link
Owner

包含选项范围请求:

{  "User[]": {    "count": 3,    "User": {      "contactIdList<>": 38710    }  }}

解析后的

SELECT * FROM `sys`.`apijson_user` WHERE ( (`contactIdList` is NOT null AND (json_contains(`contactIdList`, '38710'))) ) LIMIT 3

报错 没有对应函数

修改为clickhouse中相应函数,查询不出来

SELECT * FROM `test`.`apijson_user` WHERE ( (`contactIdList` is NOT null AND (JSONHas(`contactIdList`, '38710'))) ) LIMIT 3
SELECT * FROM `test`.`apijson_user` WHERE ( (`contactIdList` is NOT null AND (visitParamHas(`contactIdList`, '38710'))) ) LIMIT3

解决办法 参考

chenyanlann/APIJSONDemo_ClickHouse#2

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

No branches or pull requests

1 participant