How to append an index column to a spark data frame using spark streaming in scala?

后端 未结 0 965
梦如初夏
梦如初夏 2021-01-05 19:36

I am using something like this:

df.withColumn("idx", monotonically_increasing_id())

But I get an exception:

at org.a         


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