diff --git a/core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/impl/api/join.kt b/core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/impl/api/join.kt
index 11b39b3ed0..1448e40243 100644
--- a/core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/impl/api/join.kt
+++ b/core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/impl/api/join.kt
@@ -67,7 +67,7 @@ internal fun DataFrame.joinImpl(
require(leftJoinColumns.size == rightJoinColumns.size)
- // replace all MapColumns in join with nested columns, matching by column path
+ // replace all ColumnGroups in join with nested columns, matching by column path
val allLeftJoinColumns = mutableListOf>()
val allRightJoinColumns = mutableListOf>()
@@ -220,7 +220,7 @@ internal fun DataFrame.joinImpl(
val newColumn = when (srcColumn.kind) {
ColumnKind.Value -> DataColumn.createValueColumn(srcColumn.name, columnValues.asList(), srcColumn.type.withNullability(hasNulls))
ColumnKind.Frame -> DataColumn.createFrameColumn(srcColumn.name, columnValues.asList() as List)
- ColumnKind.Group -> error("Unexpected MapColumn at path ${srcColumn.path}")
+ ColumnKind.Group -> error("Unexpected ColumnGroup at path ${srcColumn.path}")
}
srcColumn.path to newColumn
}
diff --git a/core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/impl/api/update.kt b/core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/impl/api/update.kt
index b0dc4420a9..cf82931cd6 100644
--- a/core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/impl/api/update.kt
+++ b/core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/impl/api/update.kt
@@ -75,7 +75,7 @@ internal fun DataColumn.updateWith(values: List): DataColumn = when
null -> null
is List<*> -> it[colIndex]
is AnyRow -> it.getOrNull(col.name)
- else -> require(false) { "Can not add value '$it' to MapColumn" }
+ else -> require(false) { "Can not add value '$it' to ColumnGroup" }
}
}
col.updateWith(newValues)