From a65a82b521e4a2084fe49ed8a696c55df24f957b Mon Sep 17 00:00:00 2001 From: Nikita Klimenko Date: Thu, 28 Nov 2024 13:16:49 +0200 Subject: [PATCH] Parser should be skipped after it fails to parse value --- .../kotlin/org/jetbrains/kotlinx/dataframe/impl/api/parse.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/impl/api/parse.kt b/core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/impl/api/parse.kt index fb52bb2317..c12fb87380 100644 --- a/core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/impl/api/parse.kt +++ b/core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/impl/api/parse.kt @@ -513,7 +513,7 @@ internal fun DataColumn.tryParseImpl(options: ParserOptions?): DataColu else -> { val trimmed = str.trim() - val res = parserWithOptions(trimmed) ?: continue + val res = parserWithOptions(trimmed) ?: break parsedValues += res hasNotNulls = true }