You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "viirya (via GitHub)" <gi...@apache.org> on 2024/02/15 16:51:10 UTC

Re: [PR] Add example for `ScalarStructBuilder::new_null`, fix display for `null` `ScalarValue::Struct` [arrow-datafusion]

viirya commented on code in PR #9238:
URL: https://github.com/apache/arrow-datafusion/pull/9238#discussion_r1491326276


##########
datafusion/common/src/scalar/struct_builder.rs:
##########
@@ -39,8 +39,40 @@ impl ScalarStructBuilder {
         Self::default()
     }
 
-    /// Return a new [`ScalarValue::Struct`] with the specified fields and a
-    /// single null value
+    /// Return a new [`ScalarValue::Struct`] with a single `null` value.
+    ///
+    /// Note this is different from a struct where each of the specified fields
+    /// are null (e.g. `{a: NULL}`)
+    ///

Review Comment:
   👍 



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