-
Notifications
You must be signed in to change notification settings - Fork 96
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
CASE
with python params fails
#3095
Comments
Hi, |
Thanks @acquamarin |
Hi @bigluck,
I may not understand this question correctly. But I thought you can just set parameter at API level |
@andyfengHKU have a look at my merge statements, I’m trying using |
@andyfengHKU just tested with the latest nightly build (
I still need to test what happens when a python argument is used on the CASE |
This should be fixed in #3140 |
Thanks @andyfengHKU! |
Hi, I have an edge case, and I can't find an easy way to deal with it without having to run 2 separate queries.
I'm testing it on v0.3.3 dev1 (I can not test more recent versions because they cause segment faults in my code).
I have a node, and I want to set one of its params manually:
It works, but when one of the params is
None
it raises this exception:RuntimeError: Unknown parameter type <class 'NoneType'>
Then I tried using a CASE, but it fails
This is the new error I got:
Binder exception: Data type of expression CASE WHEN EQUALS($my_param,) THEN ELSE $my_param should not be modified.
I tried this different approach:
but it still fails with:
Binder exception: Data type of expression CASE WHEN EQUALS(my_param,) THEN ELSE my_param should not be modified.
Finally I also tested this:
but now it fails with
Binder exception: Data type of expression CASE WHEN EQUALS(SIZE(my_param),0) THEN ELSE my_param should not be modified.
It seems like
null
is misunderstood by the DB.The text was updated successfully, but these errors were encountered: