Skip to content

Commit fb14abb

Browse files
committed
feat[scalar]: zero_value
Signed-off-by: Joe Isaacs <[email protected]>
1 parent 93198a5 commit fb14abb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vortex-scalar/src/scalar.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ impl Scalar {
207207
/// - `Struct`: A struct where each field has a zero value, which is determined by the field
208208
/// [`DType`]
209209
/// - `Extension`: The zero value of the storage [`DType`]
210+
///
211+
/// This is similar to `default_value` except in its handling of nullability.
210212
pub fn zero_value(dtype: DType) -> Self {
211213
match dtype {
212214
DType::Null => Self::null(dtype),

0 commit comments

Comments
 (0)