Allow to unparse UNNEST
plan back to a table function SQL text
#13601
Labels
enhancement
New feature or request
UNNEST
plan back to a table function SQL text
#13601
Is your feature request related to a problem or challenge?
Given a SQL:
DataFusion plans the unnest to
Projection/Unnest/Projection
pattern likeIf we try to unparse the plan back to the SQL, the result is
However, some databases (e.g. BigQuery), only support using
UNNEST
as a table function.Describe the solution you'd like
We can introduce a new option for the unparser
Dialect
If we found the pattern of plan like
Projection/Unnest/Projection
, we can try to unparse it to anast::query::TableFactor::UNNEST
.Describe alternatives you've considered
No response
Additional context
We may need to ignore other instances of
UNNEST
usage, such as:This issue aims to enable a roundtrip for the
UNNEST
table function.The text was updated successfully, but these errors were encountered: