HyukjinKwon commented on PR #60129: URL: https://github.com/apache/spark/pull/60129#issuecomment-6700745001
Thank you for the eighth round, @dongjoon-hyun. feca8d3 addresses it: - **The per-batch check** ([45](https://github.com/apache/spark/pull/60129#discussion_r4499395300), [46](https://github.com/apache/spark/pull/60129#discussion_r4499395309)): the values that the conditions over a read give to its columns now replace columns of `TIME` and the ANSI intervals anywhere, and double and float columns where they're compared. The pushed filter with the values then goes through the optimizer of the micro-batch itself, with its configuration and without the rules that infer filters, rather than through two folding rules. So it gets every rewrite that the micro-batch's plan got, such as `UnwrapCastInBinaryComparison` and `SimplifyConditionals`. New tests join on a double key, and unwrap the cast of a pushed filter. - **The connector contract** ([47](https://github.com/apache/spark/pull/60129#discussion_r4499395315)): the Javadoc of `STREAMING_FILTER_PUSHDOWN` and the note of `SupportsPushDownV2Filters` now ask the streams of a builder whose filters may fail not to evaluate a filter on a row that an earlier one drops, as Spark doesn't. - **Docs and error message** ([48](https://github.com/apache/spark/pull/60129#discussion_r4499395324), [49](https://github.com/apache/spark/pull/60129#discussion_r4499395328), [50](https://github.com/apache/spark/pull/60129#discussion_r4499395332)): the notes of both builders name `spark.sql.streaming.v2FilterPushdown.enabled`; the error and the Scaladoc of the check name the optimizer's rewrites as a third cause; and `InMemoryMicroBatchPartition` has a single Scaladoc. Tests: the six suites (241 tests, including `PythonStreamingDataSourceSuite`) and scalastyle pass locally. Removing any new part of the check (the values of the compared columns, the optimizer, the exact types) makes a test fail. -- 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]
