-
Notifications
You must be signed in to change notification settings - Fork 5
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
v0.6.1 Can't parse Clickhouse argMaxIf
function
#53
Comments
@smoothml Just to confirm: With previous versions it was working? My first thought was that we might have forgotten to add a What I found though is that we forgot to remove a print statement. |
There has been a couple of recent issues in which test execution failed in certain scenarios (#48 and #53). These weren't caught by the libraries test as it would require executing actual tests against actual SQL queries. This commit will add a framework for running these tests against a running database engine (Clickhouse in the first instance) to better enable these kinds of bugs to be caught.
There has been a couple of recent issues in which test execution failed in certain scenarios (#48 and #53). These weren't caught by the libraries test as it would require executing actual tests against actual SQL queries. This commit will add a framework for running these tests against a running database engine (Clickhouse in the first instance) to better enable these kinds of bugs to be caught.
There has been a couple of recent issues in which test execution failed in certain scenarios (#48 and #53). These weren't caught by the libraries test as it would require executing actual tests against actual SQL queries. This commit will add a framework for running these tests against a running database engine (Clickhouse in the first instance) to better enable these kinds of bugs to be caught.
There has been a couple of recent issues in which test execution failed in certain scenarios (#48 and #53). These weren't caught by the libraries test as it would require executing actual tests against actual SQL queries. This commit will add a framework for running these tests against a running database engine (Clickhouse in the first instance) to better enable these kinds of bugs to be caught.
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.The text was updated successfully, but these errors were encountered: