johannes-ehls-db commented on code in PR #60719:
URL: https://github.com/apache/spark/pull/60719#discussion_r4631468600


##########
sql/core/src/test/resources/sql-tests/inputs/subquery/scalar-subquery/scalar-subquery-select.sql:
##########
@@ -343,3 +343,41 @@ SELECT (SELECT t1.* FROM (SELECT 3 AS col1) AS t1 LIMIT 1) 
FROM VALUES(1) AS t1(
 
 -- Outer star expansion through a derived table wrapper
 SELECT (SELECT * FROM (SELECT t1.* FROM VALUES(2) AS t2(col1) LIMIT 1)) FROM 
VALUES(1) AS t1(col1);
+
+-- Functions rewritten into an expression that references an argument more 
than once (nullif,
+-- between, decode) over scalar subqueries, aggregates, windows and lambdas.
+set spark.sql.alwaysInlineCommonExpr=true;

Review Comment:
   Thanks! The one at the bottom was the redundant one: the default is false in 
OSS, so the set at the top is needed and the trailing one didn't restore 
anything. Removed it.



-- 
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]

Reply via email to