Skip to content

Commit dee333e

Browse files
committed
Fix error in create_builder
To be tested in CubeStore.
1 parent f25a09c commit dee333e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

rust/datafusion/src/physical_plan/hash_aggregate.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,9 +1166,7 @@ fn create_builder(s: &ScalarValue) -> Box<dyn ArrayBuilder> {
11661166
DataType::UInt16 => Box::new(ListBuilder::new(UInt16Builder::new(0))),
11671167
DataType::UInt32 => Box::new(ListBuilder::new(UInt32Builder::new(0))),
11681168
DataType::UInt64 => Box::new(ListBuilder::new(UInt64Builder::new(0))),
1169-
DataType::Utf8 => {
1170-
Box::new(ListBuilder::new(ListBuilder::new(StringBuilder::new(0))))
1171-
}
1169+
DataType::Utf8 => Box::new(ListBuilder::new(StringBuilder::new(0))),
11721170
x => panic!("unexpected list type {}", x),
11731171
},
11741172
ScalarValue::Binary(_) => Box::new(BinaryBuilder::new(0)),

0 commit comments

Comments
 (0)