You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem or challenge?
if your query contains many nested unions, it could result in an inefficient plan. If it is a union of unions, we can easily simplify that to a single union node.
Describe the solution you'd like
nested union nodes should be rewritten as a single union node
flowchart TD
A[union] --> B[4]
A --> C[union]
C --> D[2]
C --> E[1]
Loading
flowchart TD
A[union] --> B[4]
A --> D[2]
A --> E[1]
Is your feature request related to a problem or challenge?
if your query contains many nested unions, it could result in an inefficient plan. If it is a union of unions, we can easily simplify that to a single union node.
Describe the solution you'd like
nested union nodes should be rewritten as a single union node
flowchart TD A[union] --> B[4] A --> C[union] C --> D[2] C --> E[1]flowchart TD A[union] --> B[4] A --> D[2] A --> E[1]Describe alternatives you've considered
None come to mind.
Additional context
For reference, polars optimizes these away.
pola-rs/polars#7855
pola-rs/polars#7861
https://github.com/influxdata/influxdb_iox/issues/7412