You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "Weijun-H (via GitHub)" <gi...@apache.org> on 2023/04/24 18:45:43 UTC

[GitHub] [arrow-rs] Weijun-H commented on a diff in pull request #4117: feat: support `Interval` + `Timestamp` and `Interval` + `Date`

Weijun-H commented on code in PR #4117:
URL: https://github.com/apache/arrow-rs/pull/4117#discussion_r1175662093


##########
arrow-arith/src/arithmetic.rs:
##########
@@ -838,6 +838,13 @@ pub fn add_dyn(left: &dyn Array, right: &dyn Array) -> Result<ArrayRef, ArrowErr
                 ))),
             }
         }
+
+        DataType::Interval(_)
+            if right.data_type().is_temporal()
+                && left.data_type() != right.data_type() =>

Review Comment:
   I believe that the trait-based approach is a superior method for long-term maintenance. 👍 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org