Skip to content

Commit d79ff01

Browse files
committed
review suggestion
Signed-off-by: MBWhite <[email protected]>
1 parent 63cb78a commit d79ff01

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

datafusion/substrait/src/logical_plan/producer.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2430,7 +2430,13 @@ mod test {
24302430

24312431
match &expression.rex_type {
24322432
Some(RexType::Selection(field_ref)) => {
2433-
assert_ne!(field_ref.root_type, None);
2433+
assert_eq!(
2434+
field_ref
2435+
.root_type
2436+
.clone()
2437+
.expect("root type should be set"),
2438+
RootType::RootReference(RootReference {})
2439+
);
24342440
}
24352441

24362442
_ => panic!("Should not be anything other than field reference"),

0 commit comments

Comments
 (0)