dtenedor commented on code in PR #37840: URL: https://github.com/apache/spark/pull/37840#discussion_r967333176
########## sql/core/src/test/resources/sql-tests/results/join-lateral.sql.out: ########## @@ -323,14 +322,10 @@ SELECT * FROM t1, LATERAL (SELECT rand(0) FROM t2) struct<> -- !query output org.apache.spark.sql.AnalysisException -Non-deterministic lateral subqueries are not supported when joining with outer relations that produce more than one row -SubqueryAlias __auto_generated_subquery_name -+- Project [rand(0) AS rand(0)#x] - +- SubqueryAlias spark_catalog.default.t2 - +- View (`spark_catalog`.`default`.`t2`, [c1#x,c2#x]) - +- Project [cast(col1#x as int) AS c1#x, cast(col2#x as int) AS c2#x] - +- LocalRelation [col1#x, col2#x] -; line 1 pos 9 Review Comment: This is a good question. Let's talk offline about it in general a bit. Note: here we include the expression `origin` with the error message, which indicates the location in the input SQL query at which the error took place. User interfaces like command-line terminals can print the nearby snippet of text along with a caret or other indicator to point out the location then. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
