diff --git a/core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/codeGen/MarkersExtractor.kt b/core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/codeGen/MarkersExtractor.kt index 08c6251a7..49e2a77be 100644 --- a/core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/codeGen/MarkersExtractor.kt +++ b/core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/codeGen/MarkersExtractor.kt @@ -55,7 +55,7 @@ internal object MarkersExtractor { private fun getFields(markerClass: KClass<*>, nullableProperties: Boolean): List { val order = getPropertyOrderFromPrimaryConstructor(markerClass) ?: emptyMap() - val structuralProperties = markerClass.memberProperties.filter { it.hasAnnotation() } + val structuralProperties = markerClass.memberProperties.filter { !it.hasAnnotation() } return structuralProperties.sortedBy { order[it.name] ?: Int.MAX_VALUE }.mapIndexed { _, it -> val fieldName = ValidFieldName.of(it.name) val columnName = it.findAnnotation()?.name ?: fieldName.unquoted