Description
After https://issues.apache.org/jira/browse/SPARK-37199, Analyzer will block LateralJoin that has non-deterministic lateral subqueries. But when the outer query is a single row relation, this should be allowed
For example:
Query:
SELECT * FROM VALUES(0) t(x) JOIN LATERAL (SELECT rand(0) + x AS y);
Result:
org.apache.spark.sql.AnalysisException: nondeterministic expressions are only allowed in Project, Filter, Aggregate or Window