simonvandel opened a new issue, #10048: URL: https://github.com/apache/arrow-datafusion/issues/10048
### Is your feature request related to a problem or challenge? Here is [DuckDB's documentation](https://duckdb.org/docs/sql/query_syntax/from.html#lateral-joins). The first example given in the above DuckDB documentation is ```sql SELECT * FROM range(3) t(i), LATERAL (SELECT i + 1) t2(j); ``` Which gives | **i** | **j** | | ------------- | ------------- | | 0 | 1 | | 2 | 3 | | 1 | 2 | If I try the same in datafusion-cli 37.0: ```sql SELECT * FROM unnest(range(3)) t(i), LATERAL (SELECT i + 1) t2(j); ``` (Note that I had to wrap `range(3)` in a `unnest`, as Datafusion does not yet have a `range` table function.) This gives `Schema error: No field named i.` I would have expected that Datafusion would let `(SELECT i + 1) t2(j)` refer to `i` from the first table. ### Describe the solution you'd like Support for lateral joins. DuckDB mentions that the `LATERAL` keyword is optional. The first implementation in Datafusion would not need this. ### Describe alternatives you've considered _No response_ ### Additional context _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
