Convert comma separated string to key value pair in spark

后端 未结 0 548
傲寒
傲寒 2020-11-21 12:45

I have a file which has comma-separated values.

  • row1,a,b,c
  • row2,f,d

how to convert this to key-value pair like.

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