Skip to content

format dumps: Properly serialize nested row to json

The Row.asDict method only performs a shallow conversion from row to dictionary. We need a recursive variant, otherwise we end up passing the Row objects themselves into serialization, which ends up serializing as a list of values rather than a key/value map.

Add a routine to do the recursive conversion, and add a basic test of the functionality.

Bug: T411347

Merge request reports

Loading