Is there better way to display entire Spark SQL DataFrame?

后端 未结 7 702
轻奢々
轻奢々 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:35

    I've tried show() and it seems working sometimes. But sometimes not working, just give it a try:

    println(df.show())
    

提交回复
热议问题