Skip to content
Browse files
Clarify docs on UnionBuilder::append_null (#1628)
  • Loading branch information
alamb committed Apr 28, 2022
1 parent 37085d2 commit 7da41c7328820241a1e9a06eb83cade2e1f08da4
Showing 1 changed file with 7 additions and 1 deletion.
@@ -2064,7 +2064,13 @@ impl UnionBuilder {

/// Appends a null to this builder.
/// Appends a null to this builder, encoding the null in the array
/// of the `type_name` child / field.
/// Since `UnionArray` encodes nulls as an entry in its children
/// (it doesn't have a validity bitmap itself), and where the null
/// is part of the final array, appending a NULL requires
/// specifying which field (child) to use.
pub fn append_null<T: ArrowPrimitiveType>(&mut self, type_name: &str) -> Result<()> {
self.append_option::<T>(type_name, None)

0 comments on commit 7da41c7

Please sign in to comment.