MohamedAbdeen21 commented on issue #8452:
URL: 
https://github.com/apache/arrow-datafusion/issues/8452#issuecomment-1974877514

   Hi @ZhengLin-Li ,
   
   I think you're confusing arrow's parser with DF's parser.
   
   The job of a parser in a programming language is to validate the syntax and 
build an AST. TIMESTAMP '2023-12-05T21:58:10.45ZZTOP' is syntactically correct, 
as TIMESTAMP 'x' and TIMESTAMP '' (empty string).
   
   This is a semantics issue which, in typical programming languages, is check 
by the semantic analysis step. In the case of SQL, and as stated in the issue's 
expected behavior, this should be handled by the optimizer; or worst case 
scenario by the query executor (think of interpreted languages that catch 
semantics error during execution).


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

Reply via email to