HyukjinKwon commented on PR #60129: URL: https://github.com/apache/spark/pull/60129#issuecomment-6671882502
Thank you, @dongjoon-hyun. 6c9a96b addresses the review; the replies are in the threads. - The scan relation normalizes its pushed filters when it is canonicalized, so its copies have the same result, and `simpleString` shows them again. - Without constraint propagation, the filters above a projection of a value of each micro-batch, such as `current_timestamp()`, are not pushed down, so no micro-batch evaluates them twice. With it, as by default, a test checks that the micro-batch evaluates the pushed filter once. - The query is not optimized at the start when no source prunes its columns and the plan has no condition. - The in-memory tables only declare the column pruning by default, as on #59943, and `passes` compares with the orderings of Spark and keeps the rows of the columns that it cannot tell. I kept `pushedFilters` on the relation, since that is where `explain` shows them, but can move them if you prefer. `StreamingV2ScanPushDownSuite` and the streaming, DSv2 and Python streaming suites pass locally. -- 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]
