Closed smoothml closed 5 months ago
@smoothml Just to confirm: With previous versions it was working?
My first thought was that we might have forgotten to add a dialect
to some sqlglot call somewhere - but I cannot spot anything (apart from that we probably want to add the dialect to those test parsings as well)
What I found though is that we forgot to remove a print statement.
Sorry @Somtom , just getting back to this.
Turns out it was indeed the print statement 🤯
Since v0.6.1 SQLMock is unable to parse Clickhouse's
argMaxIf
function.Consider the following example:
Running
test_example
results in the following exception:We do not see this error for other
xIf
functions (e.g. thecountIf
in the example query) or for functions without itIf
(e.g. plainargMax
). My initial thought was a change insqlglot
, but the version specified inpoetry.lock
has not changed in this release.