Flatten Nested Spark Dataframe

前端 未结 4 1819
-上瘾入骨i
-上瘾入骨i 2020-12-03 08:28

Is there a way to flatten an arbitrarily nested Spark Dataframe? Most of the work I\'m seeing is written for specific schema, and I\'d like to be able to generically flatten

4条回答
  •  醉话见心
    2020-12-03 09:10

    I've developed a recursively approach to flatten any nested DataFrame.

    The implementation is on the AWS Data Wrangler code base on GitHub.

    P.S. The Spark support was deprecated in the package, but the code base stills useful.

提交回复
热议问题