Skip to content

Conversation

@vinodkc
Copy link
Contributor

@vinodkc vinodkc commented Dec 7, 2025

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

@github-actions github-actions bot added the SQL label Dec 7, 2025
@vinodkc vinodkc changed the title [SPARK-54442][SQL][FOLLOWUP]Add codegen for TIME numeric conversion functions [SPARK-54442][SQL][FOLLOWUP] Add codegen for TIME numeric conversion functions Dec 7, 2025
@HyukjinKwon
Copy link
Member

cc @cloud-fan

@vinodkc vinodkc force-pushed the br_time_numeric_conversion_followup branch 3 times, most recently from f921fcf to ec99c46 Compare December 11, 2025 06:41
@vinodkc vinodkc force-pushed the br_time_numeric_conversion_followup branch from ec99c46 to 6f005b2 Compare December 11, 2025 21:25
@vinodkc vinodkc force-pushed the br_time_numeric_conversion_followup branch from 6f005b2 to 50e6885 Compare December 12, 2025 01:11
@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in 276efe3 Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants