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
Substrait doesn't support the concept of ALIASes, as inside the plan there are no column names, just indices (https://substrait.io/expressions/field_references/#field-references). Ensuring the final plan has the right column names is done through the "names" field on the RootRel.
DataFusion supports already producing that "names" field (
), though the produced list lacks the inner names of struct fields (the "names" should be a flattened list of a depth-first search through all the fields). However the consumer side completely disregards the given names (
Describe the bug
Substrait doesn't support the concept of ALIASes, as inside the plan there are no column names, just indices (https://substrait.io/expressions/field_references/#field-references). Ensuring the final plan has the right column names is done through the "names" field on the RootRel.
DataFusion supports already producing that "names" field (
datafusion/datafusion/substrait/src/logical_plan/producer.rs
Line 117 in 8fcb3e4
datafusion/datafusion/substrait/src/logical_plan/consumer.rs
Line 227 in 8fcb3e4
To Reproduce
fails with
Expected behavior
Should succeed producing the correct column names
Additional context
I'll write up a PR to fix
The text was updated successfully, but these errors were encountered: