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

   Thank you for the fourteenth round, @dongjoon-hyun. 0bc41c2 addresses it:
   
   - **Struct literals with other field names** 
([93](https://github.com/apache/spark/pull/60129#discussion_r4517955420)): a 
column gets the value of such an equality, with the type of the column. So a 
stream-static join on structs whose fields have other names keeps working.
   - **UDFs on the driver** 
([94](https://github.com/apache/spark/pull/60129#discussion_r4517955442)): the 
check only evaluates a filter with the values when the result is foldable, so 
it never runs a UDF. The optimizer still folds such filters.
   - **Floating columns** 
([95](https://github.com/apache/spark/pull/60129#discussion_r4517955452)): 
agreed that `ConstantPropagation` is wrong for -0.0 in batch queries too, 
though not with `atan2`, which adds 0.0 to its arguments. Its fix belongs in a 
separate PR, after which the filters on floating columns can be pushed down. 
This PR's examples of zeros now use `pow`.
   - **Other types** 
([96](https://github.com/apache/spark/pull/60129#discussion_r4517955462)): the 
filters on maps, variants, the geo types, calendar intervals and `NullType` are 
now pushed down, and so are user-defined types of accepted SQL types and the 
structs and arrays of these. So the docs now name all the exclusions.
   - **Real-Time Mode** 
([97](https://github.com/apache/spark/pull/60129#discussion_r4517955465)): the 
real-time stream drops the rows that fail the pushed filters, and a new test 
fails a real-time batch whose plan no longer applies them.
   - **Overhead and cleanup** 
([98](https://github.com/apache/spark/pull/60129#discussion_r4517955477), 
[99](https://github.com/apache/spark/pull/60129#discussion_r4517955488)): 
`holds` applies `exact` once, the relations with no pushed filter are skipped, 
and the helpers of `exact` sit together.
   
   Tests: the five affected suites (274 tests: `StreamingV2ScanPushDownSuite`, 
`StreamingV2ScanPushDownRealTimeSuite`, `PythonStreamingDataSourceSuite`, 
`OffsetSeqLogSuite` and `DataSourceV2Suite`) and scalastyle pass locally, and 
the new tests of items 93, 94, 96 and 97 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