pepijnve opened a new issue, #16810:
URL: https://github.com/apache/datafusion/issues/16810

   ### Describe the bug
   
   When the SQL string passed to `SessionState::sql_to_expr` contains trailing 
tokens this is silently ignored. This can lead to rather unexpected results. It 
would be better to report this situation as an error.
   
   ### To Reproduce
   
   Parse `1234 as foo.bar`. This results in an expression with the alias `foo`. 
The unprocessed input `.bar` is silently ignored instead of producing a parse 
error.
   
   ### Expected behavior
   
   A parse error is reported when the SQL expression string contains unused 
content.
   
   ### Additional context
   
   _No response_


-- 
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: github-unsubscr...@datafusion.apache.org.apache.org

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


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

Reply via email to