mihailotim-db commented on code in PR #52471: URL: https://github.com/apache/spark/pull/52471#discussion_r2576623429
########## sql/core/src/test/resources/sql-tests/inputs/column-last-resort-resolution-precedence.sql: ########## @@ -0,0 +1,23 @@ +DECLARE a = "aa"; + +SELECT 'a', a; +SELECT 'a' AS a, a; + +SELECT 'a', a FROM VALUES(1) AS t(a); +SELECT 'a' AS a, a FROM VALUES(1) AS t(a); Review Comment: Yeah, added a test case. I assume that the correct behavior is to reference an LCA over function arg, but we need @cloud-fan and @srielau to confirm -- 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]
