nooneuse opened a new issue, #64635:
URL: https://github.com/apache/doris/issues/64635

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Description
   
   Previously, column DEFAULT values in Doris were primarily treated as literal 
constants (or a small set of special built-ins such as CURRENT_TIMESTAMP), 
which limited usability for common patterns like “derive default from current 
date/time” or “compose a formatted default string”.
   
   ### Use case
   
   Example (date/datetime defaults):
   d DATEV2 NOT NULL DEFAULT to_date(now())
   dt DATETIMEV2(3) NOT NULL DEFAULT now(3)
   Example (composed string default):
   s STRING NOT NULL DEFAULT concat('a-', DATE_FORMAT(now(), '%M %e, %Y'))
   
   ### Related issues
   
   Not yet
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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