Unable to append data into existing hive table with HiveContext

501 views Asked by At

We are reading data from a hive table with hiveContext using a spark dataframe. After doing some aggregations on the data we store this data into another table (which already has data). But the new data is not being appended to the existing table... and not showing any error either...

Note: Before storing into hive I am able to print the dataframe.

1

There are 1 answers

0
Sanket On
df.write.insertInto(target_db.target_table,overwrite = False)