简体   繁体   中英

How to delete an entire data frame in Spark(SCALA)?

有一些函数可以删除Spark(SCALA)中的列和行,但找不到任何删除整个数据框的函数。有没有办法删除Spark(SCALA)中的数据框?

I'm not sure about which functions you are referring to delete columns from DFs. Spark Dataframes are immutable in nature as like RDDs . According to my understanding , its not possible. Only way to exaust an DF is garbage collection.

Little more info on DataFrame

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM