How to modify a Spark Dataframe with a complex nested structure?

前端 未结 2 481
余生分开走
余生分开走 2020-12-30 09:58

I\'ve a complex DataFrame structure and would like to null a column easily. I\'ve created implicit classes that wire functionality and easily address 2D DataFrame structure

2条回答
  •  北海茫月
    2020-12-30 10:20

    I ran into the same issue and assuming you don't need the result to have any new fields or fields with different types, here is a solution that can do this without having to redefine the whole struct: Change value of nested column in DataFrame

提交回复
热议问题