ПФ
Size: a a a
ПФ
ПФ
ПФ
dsOf(mapOf(1 to c(1, null, 3), 2 to c(1, 2, 3)), mapOf(3 to c(1, 2, 3), 4 to c(1, 2, 3)))
.flatMap { it.toList().map { p -> listOf(p.first, p.second.a, p.second.b, p.second.c) }.iterator() }
.flatten()
.map { c(it, 1) }
.also {it.printSchema()}
.distinct()
.sort("b")
// .debugCodegen()
.show()
GP
ПФ
it(c, 1)
— всё работает корректноПФ
ПФ
ПФ
GP
ПФ
ПФ
GP
ПФ
GP
ПФ
ПФ
ПФ
GP
GP
ПФ