Implement ScalarValue::IntervalMonthDayNano
-> String Support
#10795
Labels
enhancement
New feature or request
ScalarValue::IntervalMonthDayNano
-> String Support
#10795
Is your feature request related to a problem or challenge?
Part of #9494 to complete support for Unparsing LogicalPlan to SQL String.
Converting LogicalPlans back to SQL is valuable for several usecases such as using DataFusion in federated databases (e.g. generate SQL to push down) or using DataFusion's expr APIs to programmatically create SQL.
Describe the solution you'd like
Support converting SQL syntax that includes predicates with scalar values, like the following TPCH query:
The logical plan derived from parsing the above query should be able to be turned back into SQL.
Describe alternatives you've considered
The basic pattern is:
Implement the Expr --> AST reverse code in Unparser::expr_to_sql(source link)
Add a test to expr_to_sql_ok
Note you can run the tests like
Additional context
No response
The text was updated successfully, but these errors were encountered: