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 2021/05/13 12:59:02 UTC

[GitHub] [arrow-rs] paddyhoran commented on a change in pull request #273: Added Decimal support to pretty-print display utility (#230)

paddyhoran commented on a change in pull request #273:
URL: https://github.com/apache/arrow-rs/pull/273#discussion_r631790057



##########
File path: arrow/src/util/display.rs
##########
@@ -217,6 +231,9 @@ pub fn array_value_to_string(column: &array::ArrayRef, row: usize) -> Result<Str
         DataType::Float16 => make_string!(array::Float32Array, column, row),
         DataType::Float32 => make_string!(array::Float32Array, column, row),
         DataType::Float64 => make_string!(array::Float64Array, column, row),
+        DataType::Decimal(_, scale) => {
+            make_string_from_decimal!(array::DecimalArray, column, row, scale)

Review comment:
       Does this need to be a macro?  I think you can inline this as it's the only usage, right?




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

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