You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/04/16 01:21:33 UTC

[GitHub] [arrow-datafusion] liukun4515 commented on a diff in pull request #2241: fix: find the right wider decimal datatype for comparison operation

liukun4515 commented on code in PR #2241:
URL: https://github.com/apache/arrow-datafusion/pull/2241#discussion_r851569242


##########
datafusion/physical-expr/src/coercion_rule/binary_rule.rs:
##########
@@ -557,15 +571,17 @@ mod tests {
             DataType::Float32,
             DataType::Float64,
             DataType::Decimal(38, 10),
+            DataType::Decimal(20, 8),
         ];
         let result_types = [
             DataType::Decimal(20, 3),
             DataType::Decimal(20, 3),
             DataType::Decimal(20, 3),
-            DataType::Decimal(20, 3),
-            DataType::Decimal(20, 7),
-            DataType::Decimal(30, 15),
+            DataType::Decimal(23, 3),
+            DataType::Decimal(24, 7),
+            DataType::Decimal(32, 15),
             DataType::Decimal(38, 10),
+            DataType::Decimal(25, 8),

Review Comment:
   This is inspired by your comments https://github.com/apache/arrow-datafusion/pull/2200#discussion_r850030108
   Thanks



-- 
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