HyukjinKwon commented on PR #60129:
URL: https://github.com/apache/spark/pull/60129#issuecomment-6695968494

   Thank you for the fifth round, @dongjoon-hyun. 43d4a3c merges #59943 at 
6ff39d4, and b574a80 addresses items 27-34:
   
   - **Items 27-29:** the copies of the pushed filters are now dropped from the 
optimized plan of each micro-batch (`IncrementalExecution.optimizedPlan`), 
where the copy and the pushed filter have been rewritten the same way. The 
rewrite runs bottom-up, maps the pushed filters through the aliases of a 
projection, and looks through watermarks. New tests cover two chained filters, 
`id > 1` on the `bigint` id, a filter on an alias, and a filter above a 
watermark, each with the default confs, without constraint propagation, and 
with `PruneFilters` excluded. The alias and the rewritten-filter cases fail 
without the change.
   - **Item 30:** `spark.sql.streaming.v2FilterPushdown.enabled` is now public 
and `false` by default, with docs that match the column pruning.
   - **Item 31:** a scan of all the columns with filters goes through the same 
read schema check as `scanOfAllColumns`, so it keeps its filters when the 
column pruning is disabled.
   - **Item 32:** the attempts now try the filters alone after the column 
pruning alone. The failing-step test was updated, and a new test covers 
`SIMULATE_INCOMPLETE_COLUMN_PRUNING`.
   - **Items 33-34:** the plan rewrites now come after `readOutput`, and the 
TODO no longer names this PR's JIRA.
   
   The pushdown suites, `PythonStreamingDataSourceSuite`, 
`EventTimeWatermarkSuite`, `StreamingAggregationSuite`, `ContinuousSuite` and 
`StreamSuite` pass locally (548 tests). I updated the PR description.
   


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