wud-if opened a new pull request, #13787:
URL: https://github.com/apache/gluten/pull/13787

   ### What changes are proposed in this pull request?
   
   Companion to bigo-sg/velox #101. Flink's no-timezone TIMESTAMP is 
wall-clock-as-UTC, so the presto-style session-zone folds gated by 
`adjust_timestamp_to_session_timezone` must not apply — the flag was hardcoded 
"true" and masked only because the sparksql `date_format` fallback's 
session-zone rendering cancelled the folds out. Two gluten-side fixes land here 
so the affected UTs do not start failing once the velox change set merges:
   
   1. **`adjust_timestamp_to_session_timezone=false`** (`VeloxQueryConfig`): 
stops the CastExpr DATE→TIMESTAMP `toGMT` fold (`testTimestampAddSubDayOnDate` 
was shifted by the session-zone offset on non-UTC runners).
   2. **Route DATE_FORMAT over TIMESTAMP_LTZ to `date_format_ltz`** 
(`DateFormatRexCallConverter`): the planner maps Timestamp_LTZ → velox 
TIMESTAMP (type erased, value stays the instant); LTZ operands route by name to 
the flinksql session-timezone entry, no-tz operands keep the wall-clock entry. 
Routing is per operand — mixed no-tz/LTZ projections resolve independently.
   
   ### Dependency chain
   
   1. bigo-sg/velox #101 — flinksql date_format entries, from_elements parse, 
ungated CURRENT_DATE/CURRENT_TIME, alias zone resolution
   2. bigo-sg/velox4j #86 — velox pin over the #101 head
   3. this PR — planner/runtime changes + the CI pin over the velox4j pin branch
   
   The CI pin commit reverts to the upstream clone line once the velox4j pin 
merges. Landing order: 1 → 2 → 3.
   
   ### How was this patch tested?
   
   Full gluten flink UT with the complete chain, built from the pure committed 
state of all three branches: **248/248, 0 failures under both TZ=Asia/Shanghai 
and TZ=Asia/Beijing** — every TIMESTAMP_LTZ block of `testDateFormat` (LA and 
Shanghai sessions, mixed columns), `testTimestampAddSubDayOnDate`, 
`testTimestampLiteral`, `testCurrentTimeIsMillisOfDay`. Without this companion 
the velox change set alone fails all of those on a non-UTC runner.


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