mattsu2020 commented on code in PR #26969: URL: https://github.com/apache/datafusion/pull/26969#discussion_r4672795312
########## datafusion/sqllogictest/test_files/projection_pushdown.slt: ########## @@ -1949,6 +1949,51 @@ ORDER BY simple_struct.id; # (https://github.com/apache/datafusion/issues/20430) # ========================================================================= +# A prefix alone does not make an alias an extraction. In particular, moving +# this division below the filter would evaluate it on the zero row as well. +statement ok +CREATE TABLE extracted_alias_names AS +SELECT * FROM (VALUES (0), (1)) AS v(id); + +query I +SELECT 10 / id AS __datafusion_extracted_manual Review Comment: ok added regrassion test -- 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]
