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

   Thank you for the sixth round, @dongjoon-hyun. 46f9137 addresses items 35-44:
   
   - **Item 35:** before each micro-batch reads its data, and before each 
planning of a continuous query, the query is optimized again exactly as at the 
start. If a pushed filter is no longer one that all the reads of its relation 
apply, it fails with the new `STREAMING_SCAN_FILTERS_CHANGED` before reading 
anything. The threads explain why this re-derivation rather than a comparison 
with the micro-batch's own plan. A new test with a foldable value that changes 
at each evaluation shows the failure, and all the other filter tests pass 
through the check.
   - **Item 36:** the internal 
`spark.sql.streaming.v2ScanPushDown.failOnOptimizationError` replaces 
`Utils.isTesting`. The suites set it, and a test now covers the fallback that 
users get.
   - **Item 37:** new end-to-end tests with `SupportsPushDownV2Filters` and 
`SupportsPushDownCatalystFilters` builders under ANSI check the answer, the 
filters each builder got, and their order in the micro-batch.
   - **Items 38-44:** the capability doc wording, one shared `getsFilter` 
check, a shared offset-log helper (`confValues`), an early return without 
pushed filters, `PhysicalOperation` matched directly, and the row numbering of 
the in-memory tables. For item 41 I kept the pass after the optimizer and 
explained why in the thread.
   
   Locally, the pushdown suites, the streaming suites, and the batch suites 
`DataSourceV2Suite`, `JDBCV2Suite` and `ParquetV2FilterSuite` pass (628 tests), 
and the new tests fail without their changes. I updated the PR description: the 
open items of the review in #59943 are addressed, and one possible follow-up 
remains.
   


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