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

   Thank you for the thirteenth round, @dongjoon-hyun. 95f97ea addresses it:
   
   - **Fallback** 
([81](https://github.com/apache/spark/pull/60129#discussion_r4515255470)): a 
`readSchema()` that throws for the scan of all the columns with filters now 
falls back to the scan with no filter.
   - **Permanent failure and the floating zeros** 
([82](https://github.com/apache/spark/pull/60129#discussion_r4515255492), 
[90](https://github.com/apache/spark/pull/60129#discussion_r4515255590)): the 
filters on columns that the check cannot give values to (floating types, 
non-binary collations, and structs or arrays with such values) are no longer 
pushed down, and the handling of the floating zeros is gone. The config doc now 
says what happens on a rewrite that the check does not follow, and how to 
recover.
   - **0.0 and -0.0** 
([83](https://github.com/apache/spark/pull/60129#discussion_r4515255507)): 
wherever the reads and the check compare filters, they use `exact`, which tells 
floating literals apart by their bits.
   - **Shared logic** 
([84](https://github.com/apache/spark/pull/60129#discussion_r4515255519), 
[89](https://github.com/apache/spark/pull/60129#discussion_r4515255576), 
[92](https://github.com/apache/spark/pull/60129#discussion_r4515255614)): 
`pushFilters` and `getsFilter` share their translation functions, 
`ScanOfStream` is back for both sides, and `StreamingScan.toRelation` builds 
the relation for both executions.
   - **Column pruning** 
([85](https://github.com/apache/spark/pull/60129#discussion_r4515255526)): the 
rules that infer filters are excluded at startup only when a source may get 
filters.
   - **Docs** 
([86](https://github.com/apache/spark/pull/60129#discussion_r4515255540)): the 
config doc and the Javadoc of `SupportsPushDownV2Filters` describe the actual 
contract.
   - **Tests** 
([87](https://github.com/apache/spark/pull/60129#discussion_r4515255549)): the 
V2 and Catalyst fixtures drop the rows that fail their pushed filters, and two 
new tests fail a micro-batch that no longer applies them.
   - **Overhead** 
([88](https://github.com/apache/spark/pull/60129#discussion_r4515255556)): the 
check has its own `QueryPlanningTracker`, clones the configuration once for 
each run of the query, and runs the optimizer at most once for each pushed 
filter.
   - **Log keys** 
([91](https://github.com/apache/spark/pull/60129#discussion_r4515255603)): 
`FAILED_PUSHDOWNS` and `NEXT_PUSHDOWNS`.
   
   Tests: the seven suites (423 tests: `StreamingV2ScanPushDownSuite`, 
`StreamingV2ScanPushDownRealTimeSuite`, `PythonStreamingDataSourceSuite`, 
`OffsetSeqLogSuite`, `DataSourceV2Suite`, `JDBCV2Suite` and 
`QueryExecutionErrorsSuite`), `LogKeysSuite` and scalastyle pass locally, and 
the tests of items 81, 82 and 85 each fail without their fix.


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