How to handle a field in Spark SQL which is as an array of strings when it's empty and an array of structs when there's data?

前端 未结 0 1676
北恋
北恋 2021-02-02 11:28

I am trying to read a JSON file and extract certain fields using Spark SQL. There\'s one field called "checkList" which is an array of struct. checkList has 2 elements

相关标签:
回答
  • 消灭零回复
提交回复
热议问题