Skip to content

Commit

Permalink
Remove Copy trait from dyn scalar kernels (#1243)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmturner authored Jan 27, 2022
1 parent 731e132 commit fb581f3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions arrow/src/compute/kernels/comparison.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -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) => {
Expand All @@ -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) => {
Expand All @@ -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) => {
Expand All @@ -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) => {
Expand All @@ -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) => {
Expand Down

0 comments on commit fb581f3

Please sign in to comment.