File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
dataframe-arrow/src/main/kotlin/org/jetbrains/kotlinx/dataframe/io Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -184,8 +184,8 @@ public class ArrowWriter(
184
184
private fun convertColumnToTarget (column : AnyCol ? , targetFieldType : ArrowType ): AnyCol ? {
185
185
if (column == null ) return null
186
186
return when (targetFieldType) {
187
- ArrowType .Utf8 () -> column.map { it.toString() }
188
- ArrowType .LargeUtf8 () -> column.map { it.toString() }
187
+ ArrowType .Utf8 () -> column.map { it? .toString() }
188
+ ArrowType .LargeUtf8 () -> column.map { it? .toString() }
189
189
ArrowType .Binary (), ArrowType .LargeBinary () -> TODO (" Saving var binary is currently not implemented" )
190
190
ArrowType .Bool () -> column.convertToBoolean()
191
191
ArrowType .Int (8 , true ) -> column.convertToByte()
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ dependencies {
24
24
}
25
25
testImplementation(libs.kotlin.datetimeJvm)
26
26
testImplementation(libs.poi)
27
+ testImplementation(libs.arrow.vector)
27
28
}
28
29
29
30
kotlin.sourceSets {
You can’t perform that action at this time.
0 commit comments