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

   Thank you for the ninth round, @dongjoon-hyun. 03ab26e addresses it:
   
   - **The per-batch check** 
([51](https://github.com/apache/spark/pull/60129#discussion_r4499818867), 
[52](https://github.com/apache/spark/pull/60129#discussion_r4499818872), 
[53](https://github.com/apache/spark/pull/60129#discussion_r4499818880)):
     - A false or null condition over a read now implies every filter.
     - A failure of the optimizer is now the cause of the error.
     - The values of floating columns replace them anywhere, and a column equal 
to zero must pass the filter with both 0.0 and -0.0. So `floor(d) >= 0` passes, 
and the cast of -0.0 to a string doesn't.
   - **Performance** 
([54](https://github.com/apache/spark/pull/60129#discussion_r4499818888)): the 
optimizer's rewrites are cached by the pushed filter with its values, so the 
micro-batches of a query run it once for them.
   - **Fallback** 
([55](https://github.com/apache/spark/pull/60129#discussion_r4499818897)): the 
read schema of a scan of all the columns with filters is checked outside of the 
fallback, so it fails the query as it would with no filter.
   - **Tests and cleanup** 
([56](https://github.com/apache/spark/pull/60129#discussion_r4499818902), 
[57](https://github.com/apache/spark/pull/60129#discussion_r4499818906)): the 
date halves now join with a static side that has a date, and the check comes 
after `readOutput`.
   
   Tests: the six suites (242 tests, including 
`PythonStreamingDataSourceSuite`) and scalastyle pass locally. Removing any new 
part makes a test fail: the false conditions, the cause, the floating values 
and both zeros, the cache, the read schema outside of the fallback, and the 
dates.
   


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