Skip to content

Commit a74c3b5

Browse files
committed
fix hash
Signed-off-by: jayzhan211 <jayzhan211@gmail.com>
1 parent 386b167 commit a74c3b5

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

datafusion/common/src/scalar.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2722,7 +2722,9 @@ impl From<(Fields, Vec<ArrayRef>)> for ScalarValue {
27222722

27232723
// Wrapper for ScalarValue::Struct that checks the length of the arrays
27242724
impl From<(Fields, Vec<ArrayRef>, Option<NullBuffer>)> for ScalarValue {
2725-
fn from((fields, arrays, nulls): (Fields, Vec<ArrayRef>, Option<NullBuffer>)) -> Self {
2725+
fn from(
2726+
(fields, arrays, nulls): (Fields, Vec<ArrayRef>, Option<NullBuffer>),
2727+
) -> Self {
27262728
for arr in arrays.iter() {
27272729
assert_eq!(arr.len(), 1);
27282730
}
@@ -3251,10 +3253,11 @@ mod tests {
32513253
]);
32523254

32533255
let arrays = vec![
3254-
Arc::new(BooleanArray::from(vec![false, true, false, false])) as ArrayRef,
3255-
Arc::new(Int32Array::from(vec![42, 28, 19, 31]))];
3256+
Arc::new(BooleanArray::from(vec![false, true, false, false])) as ArrayRef,
3257+
Arc::new(Int32Array::from(vec![42, 28, 19, 31])),
3258+
];
32563259

3257-
let _ = ScalarValue::from((fields, arrays));
3260+
let _ = ScalarValue::from((fields, arrays));
32583261
}
32593262

32603263
#[test]

datafusion/proto/tests/cases/roundtrip_logical_plan.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,8 @@ fn round_trip_scalar_values() {
881881
vec![
882882
Field::new("a", DataType::Int32, true),
883883
Field::new("b", DataType::Boolean, false),
884-
].into(),
884+
]
885+
.into(),
885886
vec![
886887
Arc::new(Int32Array::from(vec![Some(23)])) as ArrayRef,
887888
Arc::new(BooleanArray::from(vec![Some(false)])) as ArrayRef,

0 commit comments

Comments
 (0)