spark
spark copied to clipboard
[SPARK-54442][SQL][FOLLOWUP] Add codegen for TIME numeric conversion functions
What changes were proposed in this pull request?
Implemented whole-stage codegen for TIME conversion functions (IntegralToTimeBase, TimeFromSeconds, TimeToSeconds) by removing CodegenFallback
Why are the changes needed?
Performance: CodegenFallback is 10-50x slower than generated code Pattern consistency: Follows existing Spark patterns (IntegralToTimestampBase)
Does this PR introduce any user-facing change?
No. performance optimization with identical results.
How was this patch tested?
All existing tests pass Generated code inspection confirms optimizations
Was this patch authored or co-authored using generative AI tooling?
No
cc @cloud-fan
thanks, merging to master!