Add aarch64 target_arch config
@@ -130,6 +130,8 @@ where
return Ok(DataValue::from(self.data_type()));
}
+ #[cfg(not(target_arch = "aarch64"))]
+ {
let null_count = self.null_count();
if null_count == 0 {
let c = self
@@ -140,6 +142,8 @@ where
.reduce(|a, b| if a < b { a } else { b });
return Ok(c.map_or(DataValue::from(self.data_type()), |x| (*x).into()));
}
+ }
+
Ok(aggregate::min_primitive(self.inner())
.map_or(DataValue::from(self.data_type()), |x| x.into()))
}
@@ -149,6 +153,8 @@ where
return Ok(DataValue::from(self.data_type()));
}
+ #[cfg(not(target_arch = "aarch64"))]
+ {
let null_count = self.null_count();
if null_count == 0 {
let c = self
@@ -159,6 +165,7 @@ where
.reduce(|a, b| if a > b { a } else { b });
return Ok(c.map_or(DataValue::from(self.data_type()), |x| (*x).into()));
}
+ }
Ok(aggregate::max_primitive(self.inner())
.map_or(DataValue::from(self.data_type()), |x| x.into()))
