Kotlin / Kotlin/dataframe

Fix `DataRow[column]` when column instance differs from row schema

Open
#442 6 comments 0 reactions 1 assignee Claimed by @koperagen View on GitHub
bug
Dominant language
Kotlin
Stars
1.1k
Forks
83
Avg merge
4d 12h
Merged PRs (30d)
30

Description

### Problem

`DataRow[column]` behaves incorrectly when the provided `DataColumn` instance does not belong to the same schema as the row, even if a column with the same name exists.

This happens for example in `groupBy`, where:

- `df.x` (from the original DataFrame)
- `x` inside `groupBy`

represent different column instances.

As a result:

`key[df.x]` returns an incorrect value

instead of resolving the column by name.

image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.