You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by dh...@apache.org on 2023/12/08 11:46:35 UTC
(arrow-datafusion) branch main updated: update cast (#8458)
This is an automated email from the ASF dual-hosted git repository.
dheres pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git
The following commit(s) were added to refs/heads/main by this push:
new 3f6ff22d40 update cast (#8458)
3f6ff22d40 is described below
commit 3f6ff22d40e0d3373e1538929ec54ee1ec330fc9
Author: Alex Huang <hu...@gmail.com>
AuthorDate: Fri Dec 8 12:46:29 2023 +0100
update cast (#8458)
---
datafusion/physical-expr/src/expressions/cast.rs | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/datafusion/physical-expr/src/expressions/cast.rs b/datafusion/physical-expr/src/expressions/cast.rs
index b3ca95292a..0c4ed3c125 100644
--- a/datafusion/physical-expr/src/expressions/cast.rs
+++ b/datafusion/physical-expr/src/expressions/cast.rs
@@ -140,8 +140,7 @@ impl PhysicalExpr for CastExpr {
let mut s = state;
self.expr.hash(&mut s);
self.cast_type.hash(&mut s);
- // Add `self.cast_options` when hash is available
- // https://github.com/apache/arrow-rs/pull/4395
+ self.cast_options.hash(&mut s);
}
/// A [`CastExpr`] preserves the ordering of its child.
@@ -157,8 +156,7 @@ impl PartialEq<dyn Any> for CastExpr {
.map(|x| {
self.expr.eq(&x.expr)
&& self.cast_type == x.cast_type
- // TODO: Use https://github.com/apache/arrow-rs/issues/2966 when available
- && self.cast_options.safe == x.cast_options.safe
+ && self.cast_options == x.cast_options
})
.unwrap_or(false)
}