morningman opened a new pull request #3947:
URL: https://github.com/apache/incubator-doris/pull/3947


   Fix: #3946 
   
   CL:
   1. Add prepare phase for `from_unixtime()` and `date_format()` functions, to 
handle the format string once for all.
   2. Find the cctz timezone when init `runtime state`, so that don't need to 
find timezone for each rows.
   3. Add constant rewrite rule for `utc_timestamp()`
   4. Add doc for `to_date()`
   
   The performance shows bellow:
   
   11,000,000 rows
   
   SQL1: `select count(from_unixtime(k1)) from tbl1;`
   Before: 8.85s
   After: 2.85s
   
   SQL2: `select count(from_unixtime(k1, '%Y-%m-%d %H:%i:%s')) from tbl1 limit 
1;`
   Before: 10.73s
   After: 4.85s
   
   The date string format seems still slow, we may need a further enhancement 
about it.
   


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