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/01/19 16:34:07 UTC

[GitHub] [arrow] Dandandan commented on a change in pull request #9263: ARROW-11318: [Rust] Support pretty printing timestamp, date, and timestamp types

Dandandan commented on a change in pull request #9263:
URL: https://github.com/apache/arrow/pull/9263#discussion_r560314281



##########
File path: rust/arrow/src/util/display.rs
##########
@@ -44,6 +44,57 @@ macro_rules! make_string {
     }};
 }
 
+macro_rules! make_string_date {
+    ($array_type:ty, $column: ident, $row: ident) => {{
+        let array = $column.as_any().downcast_ref::<$array_type>().unwrap();
+
+        let s = if array.is_null($row) {
+            "".to_string()

Review comment:
       Wouldn't this be better as `NULL` and add a test for it?




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