This is an automated email from the ASF dual-hosted git repository.

alamb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git


The following commit(s) were added to refs/heads/master by this push:
     new fb581f3  Remove Copy trait from dyn scalar kernels (#1243)
fb581f3 is described below

commit fb581f30572e1237223209a88b395fc26ffa9a18
Author: Matthew Turner <[email protected]>
AuthorDate: Thu Jan 27 12:05:33 2022 -0500

    Remove Copy trait from dyn scalar kernels (#1243)
---
 arrow/src/compute/kernels/comparison.rs | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/arrow/src/compute/kernels/comparison.rs 
b/arrow/src/compute/kernels/comparison.rs
index 48e8011..12d214b 100644
--- a/arrow/src/compute/kernels/comparison.rs
+++ b/arrow/src/compute/kernels/comparison.rs
@@ -1181,7 +1181,7 @@ macro_rules! dyn_compare_utf8_scalar {
 /// value. Supports PrimitiveArrays, and DictionaryArrays that have primitive 
values
 pub fn eq_dyn_scalar<T>(left: &dyn Array, right: T) -> Result<BooleanArray>
 where
-    T: num::ToPrimitive + Copy + std::fmt::Debug,
+    T: num::ToPrimitive + std::fmt::Debug,
 {
     match left.data_type() {
         DataType::Dictionary(key_type, _value_type) => {
@@ -1195,7 +1195,7 @@ where
 /// value. Supports PrimitiveArrays, and DictionaryArrays that have primitive 
values
 pub fn lt_dyn_scalar<T>(left: &dyn Array, right: T) -> Result<BooleanArray>
 where
-    T: num::ToPrimitive + Copy + std::fmt::Debug,
+    T: num::ToPrimitive + std::fmt::Debug,
 {
     match left.data_type() {
         DataType::Dictionary(key_type, _value_type) => {
@@ -1209,7 +1209,7 @@ where
 /// value. Supports PrimitiveArrays, and DictionaryArrays that have primitive 
values
 pub fn lt_eq_dyn_scalar<T>(left: &dyn Array, right: T) -> Result<BooleanArray>
 where
-    T: num::ToPrimitive + Copy + std::fmt::Debug,
+    T: num::ToPrimitive + std::fmt::Debug,
 {
     match left.data_type() {
         DataType::Dictionary(key_type, _value_type) => {
@@ -1223,7 +1223,7 @@ where
 /// value. Supports PrimitiveArrays, and DictionaryArrays that have primitive 
values
 pub fn gt_dyn_scalar<T>(left: &dyn Array, right: T) -> Result<BooleanArray>
 where
-    T: num::ToPrimitive + Copy + std::fmt::Debug,
+    T: num::ToPrimitive + std::fmt::Debug,
 {
     match left.data_type() {
         DataType::Dictionary(key_type, _value_type) => {
@@ -1237,7 +1237,7 @@ where
 /// value. Supports PrimitiveArrays, and DictionaryArrays that have primitive 
values
 pub fn gt_eq_dyn_scalar<T>(left: &dyn Array, right: T) -> Result<BooleanArray>
 where
-    T: num::ToPrimitive + Copy + std::fmt::Debug,
+    T: num::ToPrimitive + std::fmt::Debug,
 {
     match left.data_type() {
         DataType::Dictionary(key_type, _value_type) => {
@@ -1251,7 +1251,7 @@ where
 /// value. Supports PrimitiveArrays, and DictionaryArrays that have primitive 
values
 pub fn neq_dyn_scalar<T>(left: &dyn Array, right: T) -> Result<BooleanArray>
 where
-    T: num::ToPrimitive + Copy + std::fmt::Debug,
+    T: num::ToPrimitive + std::fmt::Debug,
 {
     match left.data_type() {
         DataType::Dictionary(key_type, _value_type) => {

Reply via email to