I\'m trying to run an insert statement with my HiveContext, like this:
hiveContext.sql(\'insert into my_table (id, score) values (1, 10)\')
Th
Data can be appended to a Hive table using the append mode on the DataFrameWriter.
append
data = hc.sql("select 1 as id, 10 as score") data.write.mode("append").saveAsTable("my_table")
This gives the same result as an insert.