Skip to content

Commit 685bcae

Browse files
committed
VectorIntoArray
Signed-off-by: Nicholas Gates <[email protected]>
1 parent b118ad0 commit 685bcae

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

vortex-vector/src/lib.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,13 @@ mod macros;
3838
mod private;
3939
mod scalar_macros;
4040

41-
/// Returns true if the vector's data type matches the provided data type, and nulls respect
42-
/// the nullability of the data type.
41+
/// Returns true if the vector's is compatible with the provided data type.
42+
///
43+
/// This means that the vector's physical representation is compatible with the data type,
44+
/// typically meaning the enum variants match. In the case of nested types, this function
45+
/// recursively checks the child types.
46+
///
47+
/// This function also checks that if the data type is non-nullable, the vector contains no nulls,
4348
pub fn vector_matches_dtype(vector: &Vector, dtype: &DType) -> bool {
4449
if !dtype.is_nullable() && vector.validity().false_count() > 0 {
4550
// Non-nullable dtype cannot have nulls in the vector.

0 commit comments

Comments
 (0)