ShreyeshArangath opened a new pull request, #2156:
URL: https://github.com/apache/auron/pull/2156

   # Which issue does this PR close?
   
   Closes #2155
   
   # Rationale for this change
   
   Five date-part extraction functions in NativeConverters.scala use 
buildExtScalarFunction, which does not pass the session timezone to the native 
Rust implementation:
   
   By contrast, Hour, Minute, Second, and WeekOfYear correctly use 
buildTimePartExt, which passes sessionLocalTimeZone for TimestampType inputs.
   
   This inconsistency can cause incorrect results for timestamp inputs near 
date boundaries in non-UTC timezones.
   
   Affected functions:
   
   - Year (Spark_Year) — not timezone-aware
   - Month (Spark_Month) — not timezone-aware
   - DayOfMonth (Spark_Day) — not timezone-aware
   - DayOfWeek (Spark_DayOfWeek) — not timezone-aware
   - Quarter (Spark_Quarter) — not timezone-aware
   
   # What changes are included in this PR?
   This PR fixes the bug described above
   
   # Are there any user-facing changes?
   Correctness issues fixed
   
   # How was this patch tested?
   Unit tests


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

Reply via email to