Extra blank line in ColumnSchema.toString after 2 level nested column group
Open
@zaleslaw is already working on this.
Since Aug 14, 2026.
bug
- Dominant language
- Kotlin
- Stars
- 1.1k
- Forks
- 83
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 30
Description
@Test
fun `schema should not have trailing blank line after nested column group`() {
val df = dataFrameOf(
"a" to columnOf(1),
"group" to columnOf(
"b" to columnOf(2),
"nested" to columnOf(
"c" to columnOf(3),
"d" to columnOf(4),
),
),
"e" to columnOf("str"),
)
assertEquals(
"""
a: Int
group:
b: Int
nested:
c: Int
d: Int
e: String
""".trimIndent(),
df.schema().toString(),
)
}
Result:
a: Int
group:
b: Int
nested:
c: Int
d: Int
e: String
Expected result:
a: Int
group:
b: Int
nested:
c: Int
d: Int
e: String
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.