jonahgao opened a new issue, #14958: URL: https://github.com/apache/datafusion/issues/14958
### Is your feature request related to a problem or challenge? Currently, table functions like `range` only support literal arguments. ```sh DataFusion CLI v45.0.0 > select * from range(1,3); +-------+ | value | +-------+ | 1 | | 2 | +-------+ 2 row(s) fetched. Elapsed 0.007 seconds. > select * from range(1, 2+3); Error during planning: First argument must be an integer literal ``` ### Describe the solution you'd like We may need the ability to optimize the args of table functions, such as applying [SimplifyExpressions](https://github.com/apache/datafusion/blob/086708687f400ddb698853b939635f051d343c0b/datafusion/optimizer/src/simplify_expressions/simplify_exprs.rs#L50), to transform the `2+3` into a literal. ### Describe alternatives you've considered _No response_ ### Additional context Found while working on #14801 -- 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