Skip to content

Commit 1d4a928

Browse files
authored
Fix the test failure of size_of_scalar failure on M1/M2 Mac (#3398)
* fix Signed-off-by: remzi <13716567376yh@gmail.com> * always 48 Signed-off-by: remzi <13716567376yh@gmail.com> Signed-off-by: remzi <13716567376yh@gmail.com>
1 parent 6de0796 commit 1d4a928

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

datafusion/common/src/scalar.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2575,12 +2575,7 @@ mod tests {
25752575
// The alignment requirements differ across architectures and
25762576
// thus the size of the enum appears to as as well
25772577

2578-
let expected = match cfg!(target_arch = "aarch64") {
2579-
true => 64,
2580-
false => 48,
2581-
};
2582-
2583-
assert_eq!(std::mem::size_of::<ScalarValue>(), expected);
2578+
assert_eq!(std::mem::size_of::<ScalarValue>(), 48);
25842579
}
25852580

25862581
#[test]

0 commit comments

Comments
 (0)