mihailoale-db commented on code in PR #60719: URL: https://github.com/apache/spark/pull/60719#discussion_r4630077272
########## 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: It's either that this or the one at the bottom is redundant, please check. -- 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]
