You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "theirix (via GitHub)" <gi...@apache.org> on 2025/12/13 19:19:18 UTC

[I] feat: plan-time SQL expression simplifying [datafusion]

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

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


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


Re: [I] feat: plan-time SQL expression simplifying [datafusion]

Posted by "Jefffrey (via GitHub)" <gi...@apache.org>.
Jefffrey closed issue #19312: feat: plan-time SQL expression simplifying
URL: https://github.com/apache/datafusion/issues/19312


-- 
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-unsubscribe@datafusion.apache.org

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


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