Is there better way to display entire Spark SQL DataFrame?

后端 未结 7 703
轻奢々
轻奢々 2021-01-30 20:53

I would like to display the entire Apache Spark SQL DataFrame with the Scala API. I can use the show() method:

myDataFrame.show(Int.MaxValue)
         


        
7条回答
  •  鱼传尺愫
    2021-01-30 21:39

    One way is using count() function to get the total number of records and use show(rdd.count()) .

提交回复
热议问题