Closed areshayevcaci closed 7 months ago
Hi @areshayevcaci.
Thank you for your feedback. I investigated this issue and managed to reproduce it in my environment.
As you mentioned, Power BI generates the following query when performing a search using the slicer (in my case on a district
column):
select `district`
from
(
select `district`
from `default`.`uk_price_paid`
where { fn locate({odbc_positional_1:LowCardinality(String)}, (case
when `district` is not null
then `district`
else {odbc_positional_2:LowCardinality(String)}
end), {odbc_positional_3:Nullable(Int32)}) } >= {odbc_positional_4:Nullable(Int32)}
) as `ITBL`
group by `district`
order by `district`
limit 101
This approach uses query parameters, but according to ClickHouse's query_log
table, a proper SET param_...=XX
was never executed.
I tried to locate where this is supposed to happen in the driver's code, and it seems like the driver never tries to set the parameters:
Even if such a query was executed, the ODBC driver does not support multi-statements/session stickiness (for now).
Therefore, this is an issue related to the ODBC driver itself.
CC: @mshustov @slvrtrn
Found this Issue (https://github.com/ClickHouse/clickhouse-odbc/issues/214) in the ODBC repo, therefore closing this one.
Describe the bug PowerBI Desktop, Direct Query, Slicer - try to Search "Test" - DB::Exception: Syntax error
To Reproduce Steps to reproduce the behavior:
(version 24.1.2.5 (official build)) 2024.02.16 11:42:50.431448 [ 1173 ]