File tree 1 file changed +3
-2
lines changed
datafusion/substrait/src/logical_plan
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 18
18
use datafusion:: config:: ConfigOptions ;
19
19
use datafusion:: optimizer:: analyzer:: expand_wildcard_rule:: ExpandWildcardRule ;
20
20
use datafusion:: optimizer:: AnalyzerRule ;
21
+ use substrait:: proto:: expression:: field_reference:: { RootReference , RootType } ;
21
22
use std:: sync:: Arc ;
22
23
use substrait:: proto:: expression_reference:: ExprType ;
23
24
@@ -2150,7 +2151,7 @@ fn try_to_substrait_field_reference(
2150
2151
} ) ,
2151
2152
) ) ,
2152
2153
} ) ) ,
2153
- root_type : None ,
2154
+ root_type : Some ( RootType :: RootReference ( RootReference { } ) ) ,
2154
2155
} )
2155
2156
}
2156
2157
_ => substrait_err ! ( "Expect a `Column` expr, but found {expr:?}" ) ,
@@ -2192,7 +2193,7 @@ fn substrait_field_ref(index: usize) -> Result<Expression> {
2192
2193
} ) ,
2193
2194
) ) ,
2194
2195
} ) ) ,
2195
- root_type : None ,
2196
+ root_type : Some ( RootType :: RootReference ( RootReference { } ) ) ,
2196
2197
} ) ) ) ,
2197
2198
} )
2198
2199
}
You can’t perform that action at this time.
0 commit comments