You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cannot use correlated column name in FROM clause of LATERAL join. This might not be a bug (although it does differ from POSTGRESQL), but I'd still be interested whether something like this is possible.
In practice, rather than a range, I'd be calling read_parquet.
This is related to #7522, #5762, and #6917. The issue here is that neither range nor generate_series are table in-out functions. Same is true for read_parquet, apparently. Therefore the functions cannot take the columns of the lateral join as input parameters.
What happens?
Cannot use correlated column name in FROM clause of LATERAL join. This might not be a bug (although it does differ from POSTGRESQL), but I'd still be interested whether something like this is possible.
In practice, rather than a
range
, I'd be callingread_parquet
.To Reproduce
(an attempted cast to integer reveals that
tb.i
is treated like a string literal)In POSTGRESQL, the following works:
View on DB Fiddle
OS:
Linux
DuckDB Version:
0.10.1
DuckDB Client:
Python
Full Name:
Soeren Wolfers
Affiliation:
G-Research
Have you tried this on the latest nightly build?
I have tested with a nightly build
Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?
The text was updated successfully, but these errors were encountered: