Gabriel39 opened a new pull request, #71188:
URL: https://github.com/apache/doris/pull/71188

   ### What problem does this PR solve?
   
   Issue Number: None
   Related PR: apache/doris#70335
   
   Backport apache/doris#70335 to `branch-4.1`. FE constant TIMESTAMPTZ output 
must reject session-local years outside 0–9999, preserve historical offset 
seconds, and keep valid UTC instants writable. Cloud EXPLAIN must check FE 
execution eligibility without formatting SELECT results.
   
   The requested master merge order is apache/doris#70079, apache/doris#70154, 
then apache/doris#70335. The first two changes are already present in this 
target through apache/doris#70319; this PR contains only the missing #70335.
   
   The backport uses the release branch's legacy DateLiteral/FormatOptions 
formatter and retains its three-argument SQL cache API. Scalar and nested 
stream-load values remain canonical UTC; timezone conversion also rejects 
negative-year defaults.
   
   ### Testing
   
   - Targeted FE unit tests: 48 total, 46 passed, 2 existing disabled tests 
skipped; zero failures/errors. This includes cloud planning without a compute 
group, actual SELECT errors, parser/display boundaries, historical offsets, 
nested UTC storage, FE eligibility and backend fallbacks.
   - FE Checkstyle passed with zero violations.
   - Before the fix, the seven timestamp output tests reproduced six assertion 
failures and zero errors; the same tests all pass after the fix.
   
   The upstream SQL regression suite and its generated expected output are 
included unchanged. Live FE/BE SQL regression was not run locally for this 
backport.
   
   ### Release note
   
   TIMESTAMPTZ constant-query output rejects out-of-range session-local years 
and preserves historical offset seconds. Valid UTC boundary values remain 
writable, negative-year defaults are rejected, and cloud EXPLAIN remains 
available for values whose display would overflow.
   
   ### Check List (For Author)
   
   - [x] Unit tests
   - [x] Regression tests included
   - Behavior changed: Yes, as described above.
   - Documentation required: No; this enforces the existing timestamp range and 
timezone contract.
   


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