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


   # Proposed changes
   
   Issue Number: close #xxx
   
   ## Problem Summary:
   SQL to reproduce:
   ```
   SELECT * FROM table WHERE where FROM_UNIXTIME(d_datekey,'%Y-%m-%d %H:%i:%s') 
!= '1970-08-20 00:11:43';
   
   org.apache.doris.common.AnalysisException: errCode = 2, detailMessage = 
Unexpected exception: Illegal pattern character 'i'
           at org.apache.doris.qe.StmtExecutor.analyze(StmtExecutor.java:584) 
~[palo-fe.jar:3.4.0]
           at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:345) 
~[palo-fe.jar:3.4.0]
           at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:318) 
~[palo-fe.jar:3.4.0]
           at 
org.apache.doris.qe.ConnectProcessor.handleQuery(ConnectProcessor.java:221) 
~[palo-fe.jar:3.4.0]
           at 
org.apache.doris.qe.ConnectProcessor.dispatch(ConnectProcessor.java:361) 
~[palo-fe.jar:3.4.0]
           at 
org.apache.doris.qe.ConnectProcessor.processOnce(ConnectProcessor.java:562) 
~[palo-fe.jar:3.4.0]
           at 
org.apache.doris.mysql.nio.ReadListener.lambda$handleEvent$0(ReadListener.java:50)
 ~[palo-fe.jar:3.4.0]
           at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 
[?:?]
           at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 
[?:?]
           at java.lang.Thread.run(Thread.java:835) [?:?]
   ```
   
   
   Describe the overview of changes.
   Just support:
   yyyy-MM-dd HH:mm:ss
   yyyy-MM-dd
   yyyyMMdd
   
   ## Checklist(Required)
   
   1. Does it affect the original behavior: (Yes)
   2. Has unit tests been added: (No Need)
   3. Has document been added or modified: (Yes)
   4. Does it need to update dependencies: (No)
   5. Are there any changes that cannot be rolled back: (No)
   
   ## Further comments
   
   Should we convert `%y`


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