stevomitric opened a new pull request, #58658:
URL: https://github.com/apache/spark/pull/58658

   
   ### What changes were proposed in this pull request?
   `time_bucket(bucketSize, ts[, origin])` now accepts and returns 
nanosecond-precision timestamps (`TIMESTAMP_LTZ(p)` / `TIMESTAMP_NTZ(p)`, p ∈ 
[7, 9]), alongside the existing microsecond types.
   
   ### Why are the changes needed?
   Part of nanosecond-precision timestamp support (SPARK-56822). `time_bucket` 
previously rejected nanosecond timestamps at analysis.
   
   ### Does this PR introduce _any_ user-facing change?
   Yes, `time_bucket` now works on nanosecond-precision timestamp columns.
   
   
   ### How was this patch tested?
   New `DateExpressionsSuite` cases covering day-time and year-month buckets
   
   
   ### Was this patch authored or co-authored using generative AI tooling?
   Co-authored-by: Claude Code 4.8
   


-- 
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