I am trying to insert data from a data frame into a Hive table. I have been able to do so successfully using
df.write.insertInto("db1.table1", overwrite = True).
I am just a little confused about the overwrite = True part -- I tried running it multiple times and it seemed to append, not overwrite. There wasn't too much in the docs, but when should I set overwrite to False vs. True?