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

Double quote converts into backquote #33

Open
d1bevz opened this issue Dec 28, 2020 · 0 comments
Open

Double quote converts into backquote #33

d1bevz opened this issue Dec 28, 2020 · 0 comments

Comments

@d1bevz
Copy link

d1bevz commented Dec 28, 2020

I'm using pandahouse to execute query with where-condition using string that contains apostrophe in its value (e.g. Rock'n'Roll)
Normally I use double-quote in datagrip and all works just fine
But it seems to me read_clickhouse function just converts all double quotes into backquotes and it forces clickhouse to see this expression as a column
For example the sting that I'm passing to read_clickhouse function as follows:

select * from sometable
where genre == "Rock'n'Roll"

As a result of read_clickhouse function I got mistake that clickhouse doesn't see the column Rock'n'Roll, because it executes not the same string, but:

select * from sometable
where genre == `Rock'n'Roll`

Actually all queries that have double-quotes fall because of this mistake
I can't even use replaceAll(genre, "'", ' ') clickhouse-function, because it cannot see column ' - that is strange

Why is this happening?

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