Skip to content

Commit d22b000

Browse files
committed
Check null values explicitly in Arrow writing
1 parent 81b4c6b commit d22b000

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dataframe-arrow/src/main/kotlin/org/jetbrains/kotlinx/dataframe/io/ArrowWriterImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ internal class ArrowWriterImpl(
249249
strictType: Boolean,
250250
strictNullable: Boolean,
251251
): FieldVector {
252-
val containNulls = (column == null || column.hasNulls())
252+
val containNulls = (column == null || column.values().any { it == null})
253253
// Convert the column to type specified in field. (If we already have target type, convertTo will do nothing)
254254

255255
val (convertedColumn, actualField) = try {

0 commit comments

Comments
 (0)