-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Unable to use CTE scalar as numbers() argument #8259
Comments
|
It's because table functions are evaluated earlier than scalar subqueries, and in fact they don't take subqueries into account at all. However it's still a valid use case. You can switch it to a feature request and it might work in near future. |
filimonov
added
feature
and removed
bug
Confirmed user-visible misbehaviour in official release
labels
Sep 13, 2020
Would be great to have that... |
This had been fixed in analyzer - #56337 (comment) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a simplification of what I'm trying to achieve:
It fails with error:
Code: 47, e.displayText() = DB::Exception: Missing columns: 'something' while processing query: 'toUInt64(something)', required columns: 'something', source columns: '_dummy' (version 19.17.5.18 (official build))
Replace last line with a fixed value, and the query works fine. Is it not possible to use a CTE value as input to numbers()? Any workaround?
thanks!
The text was updated successfully, but these errors were encountered: