HappenLee opened a new issue #5944:
URL: https://github.com/apache/incubator-doris/issues/5944


   **Is your feature request related to a problem? Please describe.**
   Now, the function `current_timestamp()`, `curtime()`, `current_time()` can't 
do  constant fold in FE
   ```
   +-----------------------------------+
   | Explain String                    |
   +-----------------------------------+
   | PLAN FRAGMENT 0                   |
   |  OUTPUT EXPRS:<slot 0> curtime() |
   |   PARTITION: UNPARTITIONED        |
   |                                   |
   |   RESULT SINK                     |
   |                                   |
   |   0:UNION                         |
   |      constant exprs:              |
   |          curtime()              |
   +-----------------------------------+
   ```
   
   **Describe the solution you'd like**
   The proper result should be
   
   ```
   **+-----------------------------------+
   | Explain String                    |
   +-----------------------------------+
   | PLAN FRAGMENT 0                   |
   |  OUTPUT EXPRS:<slot 0> '16:44:04' |
   |   PARTITION: UNPARTITIONED        |
   |                                   |
   |   RESULT SINK                     |
   |                                   |
   |   0:UNION                         |
   |      constant exprs:              |
   |          '16:44:04'               |
   +-----------------------------------+
   **
   ```
   
   


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

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