jacktengg opened a new pull request, #66630:
URL: https://github.com/apache/doris/pull/66630
[feature](timestamp_ns) Support casts and date-time functions
### What problem does this PR solve?
Issue Number: None
Related PR: None
Problem Summary: TIMESTAMP_NS basic type support did not include the cast
matrix or the date-time function surface available to DATETIMEV2. Queries that
converted TIMESTAMP_NS values, combined them with other temporal types, or used
date arithmetic, extraction, formatting, aggregate, window, and conditional
functions could fail during analysis or backend function resolution. This
change adds explicit FE signatures and coercion rules together with BE
vectorized implementations. Nanoseconds are preserved when the result remains
TIMESTAMP_NS, conversions to lower-precision types use existing rounding
semantics, and operations that leave the signed epoch-nanosecond domain report
an error instead of wrapping.
### Release note
Support casts and date-time functions for TIMESTAMP_NS.
### Check List (For Author)
- Test: Unit Test and Regression test
- FE unit tests for cast validation, literal conversion, type coercion,
and function signatures
- BE unit tests for casts, scalar functions, conditional expressions,
and aggregate/window factories
- datatype_p0/timestamp_ns regression suites
- Behavior changed: Yes (TIMESTAMP_NS supports casts and date-time functions)
- Does this need documentation: No
--
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]