krangl icon indicating copy to clipboard operation
krangl copied to clipboard

Improve error message for unnest with empty list

Open ablaagaard opened this issue 3 years ago • 1 comments

Reduced test case: dataFrameOf("a", "b")(listOf<Int>(), 1).unnest("a") fails with "Provided data does not coerce to tabular shape"

It took me a while to figure out from a larger dataset that the empty list was the problem. I guess unnest could also be defined to unnest to zero rows in this case, but maybe that is too magical.

ablaagaard avatar May 10 '22 14:05 ablaagaard

Not sure if unnesting to zero row dataframe is much better here. Do you know how dplyr handles this example?

holgerbrandl avatar May 28 '22 16:05 holgerbrandl