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

   ### Is your feature request related to a problem or challenge?
   
   Some SQL constructs require parsing numeric expressions at plan-time, so 
planners must use a literal. For example, `SELECT * FROM TABLE SAMPLE (10 + 50 
* 2)`, window functions. In #17843, there is a custom function 
`eval_numeric_expr` to make a tree traversal to resolve a literal. It would be 
nice to have a reusable function in core.
   
   ### Describe the solution you'd like
   
   A generic reusable function module for parsing and simplifying an SQL 
expression to a literal of a given type.
   
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### 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: [email protected]

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