From e6014b56b079e000d99de2df4e7564cee49438ab Mon Sep 17 00:00:00 2001 From: jackwener Date: Tue, 6 Jun 2023 13:57:27 +0800 Subject: [PATCH] minor: remove useless prefix --- arrow-ord/src/comparison.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arrow-ord/src/comparison.rs b/arrow-ord/src/comparison.rs index b9274f0eaefb..4f8b9a322620 100644 --- a/arrow-ord/src/comparison.rs +++ b/arrow-ord/src/comparison.rs @@ -1196,9 +1196,10 @@ where K: ArrowDictionaryKeyType, K::Native: num::ToPrimitive, { - // TODO: Use take_boolean (#2967) - let array = take(&dict_comparison, dict.keys(), None)?; - Ok(BooleanArray::from(array.to_data())) + let array = take(&dict_comparison, dict.keys(), None)? + .as_boolean() + .clone(); + Ok(array) } /// Helper function to perform boolean lambda function on values from two arrays using