You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by tu...@apache.org on 2022/10/30 21:19:24 UTC
[arrow-rs] branch master updated: add clone and equal functions for CastOptions (#2985)
This is an automated email from the ASF dual-hosted git repository.
tustvold 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 3c1f3230e add clone and equal functions for CastOptions (#2985)
3c1f3230e is described below
commit 3c1f3230e15b0bbf9c0e719a97c8d4d01c3e1d22
Author: askoa <11...@users.noreply.github.com>
AuthorDate: Sun Oct 30 17:19:18 2022 -0400
add clone and equal functions for CastOptions (#2985)
Co-authored-by: askoa <as...@local>
---
arrow/src/compute/kernels/cast.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arrow/src/compute/kernels/cast.rs b/arrow/src/compute/kernels/cast.rs
index 3e5579150..4c724b640 100644
--- a/arrow/src/compute/kernels/cast.rs
+++ b/arrow/src/compute/kernels/cast.rs
@@ -61,7 +61,7 @@ use num::cast::AsPrimitive;
use num::{NumCast, ToPrimitive};
/// CastOptions provides a way to override the default cast behaviors
-#[derive(Debug)]
+#[derive(Debug, Clone, PartialEq, Eq)]
pub struct CastOptions {
/// how to handle cast failures, either return NULL (safe=true) or return ERR (safe=false)
pub safe: bool,