Skip to content

Commit d168f0b

Browse files
Automated commit of generated code
1 parent bb96ffd commit d168f0b

File tree

1 file changed

+3
-5
lines changed
  • core/generated-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/impl/api

1 file changed

+3
-5
lines changed

core/generated-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/impl/api/toDataFrame.kt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,9 @@ internal fun convertToDataFrame(
251251
val kClass = returnType.classifier as KClass<*>
252252
val fieldKind = returnType.getFieldKind()
253253

254-
val shouldCreateValueCol = (
255-
maxDepth <= 0 &&
256-
!fieldKind.shouldBeConvertedToFrameColumn &&
257-
!fieldKind.shouldBeConvertedToColumnGroup
258-
) ||
254+
val keepSubtree =
255+
maxDepth <= 0 && !fieldKind.shouldBeConvertedToFrameColumn && !fieldKind.shouldBeConvertedToColumnGroup
256+
val shouldCreateValueCol = keepSubtree ||
259257
kClass == Any::class ||
260258
kClass in preserveClasses ||
261259
property in preserveProperties ||

0 commit comments

Comments
 (0)