Kotlin / Kotlin/dataframe

[Bug] `DataFrame.readJson()` reads `null` as empty list in array column

Open
#2,048 1 comment 0 reactions 1 assignee Claimed by @AndreiKingsley View on GitHub
bug
Dominant language
Kotlin
Stars
1.1k
Forks
83
Avg merge
4d 12h
Merged PRs (30d)
30

Description

```kt
DataFrame.readJsonStr("""[null, [123], []]""")
```
produces
```kt
array
List
----
0 [ ]
1 [123]
2 [ ]
```
Expected:

```kt
array
List?
----
0 null
1 [123]
2 [ ]
```

Fixes https://github.com/Kotlin/dataframe/issues/2046

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.