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

   ## Proposed changes
   
   Issue Number: close #xxx
   
   ```sql
   create table str(
   k0 varchar not null
   )
   DISTRIBUTED BY HASH(`k0`) BUCKETS auto
   properties("replication_num" = "1");
   
   insert into str select '2034-12-15 12:12:12' from numbers("number" = 
"50000000");
   set parallel_pipeline_task_num=1;
   
   --- origin
   mysql [test]>select count(cast(k0 as datetime)) from str;
   +----------------------------------+
   | count(cast(k0 as DATETIMEV2(0))) |
   +----------------------------------+
   |                         50000000 |
   +----------------------------------+
   1 row in set (7.09 sec)
   
   --- opt function and isspace
   mysql [test]>select count(cast(k0 as datetime)) from str;
   +----------------------------------+
   | count(cast(k0 as DATETIMEV2(0))) |
   +----------------------------------+
   |                         50000000 |
   +----------------------------------+
   1 row in set (5.28 sec)
   
   --- and ispunct
   mysql [test]>select count(cast(k0 as datetime)) from str;
   +----------------------------------+
   | count(cast(k0 as DATETIMEV2(0))) |
   +----------------------------------+
   |                         50000000 |
   +----------------------------------+
   1 row in set (5.14 sec)
   ```
   
   


-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to