It is not possible to use the ?
symbol in SQL queries
#6589
Labels
backend:server
Issues relating to Cube Core's Server
bug
Something isn't working
help wanted
Community contributions are welcome.
Describe the bug
Some Clickhouse functions such as sequenceMatch use question marks in their syntax. Cube.js will always treat the question marks as parameters, and there doesn't seem to be a way to escape them.
To Reproduce
Steps to reproduce the behavior:
sequenceMatch
function with?
in the syntaxExpected behavior
With the example Cube schema, I would expect the following SQL to be generated:
Actual behaviour
Instead, the generated SQL is this:
Minimally reproducible Cube Schema
Query JSON:
Version:
0.31.32
Additional context
This happens because the Cube Clickhouse driver uses the sqlstring library for escaping SQL queries, which is designed for MySQL and not Clickhouse. The library does not support escaping the question mark.
The text was updated successfully, but these errors were encountered: