From d4424d890c8dacf120f56fe529e3a5b4d45b0ef0 Mon Sep 17 00:00:00 2001 From: remzi <13716567376yh@gmail.com> Date: Thu, 8 Sep 2022 21:33:06 +0800 Subject: [PATCH 1/2] fix Signed-off-by: remzi <13716567376yh@gmail.com> --- datafusion/common/src/scalar.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datafusion/common/src/scalar.rs b/datafusion/common/src/scalar.rs index be06f7b3ac2b3..0106fe0af0653 100644 --- a/datafusion/common/src/scalar.rs +++ b/datafusion/common/src/scalar.rs @@ -2575,7 +2575,7 @@ mod tests { // The alignment requirements differ across architectures and // thus the size of the enum appears to as as well - let expected = match cfg!(target_arch = "aarch64") { + let expected = match cfg!(target_arch = "x86_64") { true => 64, false => 48, }; From 4090903946b842b803e91f349c686652abe35226 Mon Sep 17 00:00:00 2001 From: remzi <13716567376yh@gmail.com> Date: Mon, 12 Sep 2022 11:32:01 +0800 Subject: [PATCH 2/2] always 48 Signed-off-by: remzi <13716567376yh@gmail.com> --- datafusion/common/src/scalar.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/datafusion/common/src/scalar.rs b/datafusion/common/src/scalar.rs index 0106fe0af0653..6c60bc373fa13 100644 --- a/datafusion/common/src/scalar.rs +++ b/datafusion/common/src/scalar.rs @@ -2575,12 +2575,7 @@ mod tests { // The alignment requirements differ across architectures and // thus the size of the enum appears to as as well - let expected = match cfg!(target_arch = "x86_64") { - true => 64, - false => 48, - }; - - assert_eq!(std::mem::size_of::(), expected); + assert_eq!(std::mem::size_of::(), 48); } #[test]