Skip to content

Commit bcb8e26

Browse files
Add kernel to error message
1 parent c7ccf0b commit bcb8e26

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arrow/src/compute/kernels/comparison.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,7 @@ where
11021102
| DataType::UInt32
11031103
| DataType::UInt64 => {dyn_compare_scalar!(&left, right, key_type, eq_scalar)}
11041104
_ => Err(ArrowError::ComputeError(
1105-
"Kernel only supports PrimitiveArray or DictionaryArray with Primitive values".to_string(),
1105+
"eq_dyn_scalar only supports PrimitiveArray or DictionaryArray with Primitive values".to_string(),
11061106
))
11071107
}
11081108
DataType::Int8
@@ -1116,7 +1116,7 @@ where
11161116
dyn_compare_scalar!(&left, right, eq_scalar)
11171117
}
11181118
_ => Err(ArrowError::ComputeError(
1119-
"Kernel only supports PrimitiveArray or DictionaryArray with Primitive values".to_string(),
1119+
"eq_dyn_scalar only supports PrimitiveArray or DictionaryArray with Primitive values".to_string(),
11201120
))
11211121
}
11221122
}
@@ -1138,7 +1138,7 @@ where
11381138
| DataType::UInt32
11391139
| DataType::UInt64 => {dyn_compare_scalar!(&left, right, key_type, lt_scalar)}
11401140
_ => Err(ArrowError::ComputeError(
1141-
"Kernel only supports PrimitiveArray or DictionaryArray with Primitive values".to_string(),
1141+
"lt_dyn_scalar only supports PrimitiveArray or DictionaryArray with Primitive values".to_string(),
11421142
))
11431143
}
11441144
DataType::Int8
@@ -1152,7 +1152,7 @@ where
11521152
dyn_compare_scalar!(&left, right, lt_scalar)
11531153
}
11541154
_ => Err(ArrowError::ComputeError(
1155-
"Kernel only supports PrimitiveArray or DictionaryArray with Primitive values".to_string(),
1155+
"lt_dyn_scalar only supports PrimitiveArray or DictionaryArray with Primitive values".to_string(),
11561156
))
11571157
}
11581158
}

0 commit comments

Comments
 (0)