You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@auron.apache.org by "weiqingy (via GitHub)" <gi...@apache.org> on 2026/08/07 18:58:05 UTC

[I] [Flink] Run UNIX_TIMESTAMP natively for fixed-offset session time zones [auron]

weiqingy opened a new issue, #2455:
URL: https://github.com/apache/auron/issues/2455

   Follow-up to #1863 and #2448.
   
   `table.local-time-zone` accepts fixed-offset ids such as `GMT-08:00`, and Flink's own validation message recommends that form. The native `Flink_UnixTimestamp` resolves its zone id by exact-match lookup against the IANA time zone database via chrono-tz, which carries no `GMT±HH:MM` entries, so those ids cannot be resolved natively.
   
   #2448 rejects them at plan time, so the Calc falls back to Flink and returns correct results. That closes the correctness hole, since before it the id reached the native call and failed there, past the point where any fallback remained. But it also means a session on a fixed offset gets no native acceleration for any Calc containing `UNIX_TIMESTAMP`.
   
   141 of the 745 zone ids Flink's validator accepts are in this family. It is reachable without any explicit configuration too: the default value resolves to `ZoneId.systemDefault()`, so a TaskManager running with `TZ=GMT-08:00` lands there silently.
   
   Idea: teach `flink_unix_timestamp` to parse `GMT±HH:MM` into an explicit fixed offset, and drop the offset family from the plan-time gate. `parse_datetime` and `resolve_offset_secs` are both typed on `chrono_tz::Tz`, so this needs a generalization over `Tz` and a fixed offset. The parser in #2409 was validated differentially against `SimpleDateFormat`, and the offset path should be validated the same way.
   
   The plan-time gate stays regardless. The legacy `SystemV/*` ids are in `ZoneId.getAvailableZoneIds()` but absent from chrono-tz, so they still need to fall back.
   
   One alternative was considered and rejected: mapping fixed offsets onto chrono-tz's `Etc/GMT∓N` names on the Java side, avoiding any native change. POSIX inverts the sign there, so `Etc/GMT+8` is UTC−8, and an error would ship timestamps silently wrong by twice the offset rather than merely unaccelerated. Half-hour offsets such as `GMT+05:30` have no `Etc/` equivalent either.
   


-- 
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: commits-unsubscribe@auron.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Flink] Run UNIX_TIMESTAMP natively for fixed-offset session time zones [auron]

Posted by "slfan1989 (via GitHub)" <gi...@apache.org>.
slfan1989 closed issue #2455: [Flink] Run UNIX_TIMESTAMP natively for fixed-offset session time zones
URL: https://github.com/apache/auron/issues/2455


-- 
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: commits-unsubscribe@auron.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Flink] Run UNIX_TIMESTAMP natively for fixed-offset session time zones [auron]

Posted by "Tartarus0zm (via GitHub)" <gi...@apache.org>.
Tartarus0zm commented on issue #2455:
URL: https://github.com/apache/auron/issues/2455#issuecomment-5263774948

   hi @weiqingy  We can start this work now.


-- 
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: commits-unsubscribe@auron.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org