-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Short circuit function evaluation is not applied to constant in conversion functions #37038
Comments
BTW why do you need it at all?
|
With con-constant column it works correctly (on master):
|
It's related to default implementation for constants in conversion functions and constant folding while query analysis. Will look is it possible to disable it for short-circuit case |
WA: toFloat64OrZero
|
Because it is a more complex query but I tried to report the smallest example with the issue.
I agree, replacing Thank you! |
ah I see
|
This is still relevant. |
Hi,
First, I am using ClickHouse
21.10.5.3
according to the following query:Then, I have an inconsistent result when executing this query:
Because
returns
0
, I expect thetoFloat64('-1671.45')
to be executed instead oftoFloat64(concat('0', '-1671.45'))
.Did I make a mistake somewhere?
Best,
C.
The text was updated successfully, but these errors were encountered: