What is the recommended way to overwrite a table in Spark SqlContext? Is it OK to directly call
modified_df.registerTempTable("same_table_name")
without dropping the table in sqlContext?
Best practice would likely be to explicitly drop the table to avoid confusion. But, the above code will overwrite the table as you would expect.
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.