WangGuangxin opened a new pull request, #13757: URL: https://github.com/apache/gluten/pull/13757
## What changes are proposed in this pull request? TimestampNTZ validation is disabled by default (`spark.gluten.sql.columnar.backend.velox.enableTimestampNtzValidation=false`). Even so, `FallbackByTimestampNTZ` only allowed scans, aggregates, shuffle exchanges and some projects. Any other operator with TimestampNTZ in its input or output schema fell back with `<Node> has TimestampNTZType in input/output schema`. This included Sort, Filter, the joins, Window, WindowGroupLimit and TakeOrderedAndProject. This PR allows those operators: Sort, Filter, TakeOrderedAndProject, the joins (SortMergeJoin, ShuffledHashJoin, BroadcastHashJoin, BroadcastNestedLoopJoin, CartesianProduct), BroadcastExchange, Expand, Union, Coalesce, the limits, Window and WindowGroupLimit. The condition is that every expression touching TimestampNTZ is one of: - an attribute reference, literal, comparison, `IsNull`/`IsNotNull`, or `If`/`CaseWhen`/`Coalesce`; - an NTZ function that is already supported natively: cast, hour/minute/second, timestampadd, convert_timezone, make_timestamp; - `min`/`max`/`first`/`last`/`count`, or `lag`/`lead`/`nth_value`/`In`/`InSet`. Native validation still checks the functions and signatures used. For example, comparisons for which Velox has no `(TIMESTAMP UTC, TIMESTAMP UTC)` signature still fall back. Unsupported NTZ expressions (e.g. `date_format` on NTZ) and RANGE frames with value offsets over an NTZ order key are not offloaded. -- 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]
