Skip to content

Commit 4c97a26

Browse files
Automated commit of generated code
1 parent fa52536 commit 4c97a26

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

core/generated-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/DataRow.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import org.jetbrains.kotlinx.dataframe.impl.columnName
1010
import org.jetbrains.kotlinx.dataframe.impl.owner
1111
import org.jetbrains.kotlinx.dataframe.impl.toIterable
1212
import org.jetbrains.kotlinx.dataframe.util.DEPRECATED_ACCESS_API
13+
import org.jetbrains.kotlinx.dataframe.util.DEPRECATED_DATA_ROW_COLUMN_REFERENCE_GET
1314
import kotlin.reflect.KProperty
1415

1516
/**
@@ -29,7 +30,7 @@ public interface DataRow<out T> {
2930

3031
public operator fun <R> get(expression: RowExpression<T, R>): R = expression(this, this)
3132

32-
@Deprecated(DEPRECATED_ACCESS_API)
33+
@Deprecated(DEPRECATED_DATA_ROW_COLUMN_REFERENCE_GET)
3334
@AccessApiOverload
3435
public operator fun <R> get(column: ColumnReference<R>): R
3536

core/generated-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/util/deprecationMessages.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,9 @@ internal const val UNIFIED_SIMILAR_CS_API = "Deprecated duplicated functionality
209209
internal const val DEPRECATED_ACCESS_API =
210210
"It's recommended to migrate to the String or Extension Properties Access API https://kotlin.github.io/dataframe/apilevels.html"
211211

212+
internal const val DEPRECATED_DATA_ROW_COLUMN_REFERENCE_GET =
213+
"Accessing a DataRow by ColumnReference (row[col]) is deprecated. Prefer String or extension property access (e.g., row[\"name\"] or row.name). The reverse indexing col[row] remains supported."
214+
212215
internal const val IDENTITY_FUNCTION = "This overload is an identity function and can be omitted."
213216

214217
internal const val COL_REPLACE = "col"

0 commit comments

Comments
 (0)