“INSERT INTO …” with SparkSQL HiveContext

前端 未结 6 1410
你的背包
你的背包 2021-02-05 05:32

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

6条回答
  •  不要未来只要你来
    2021-02-05 05:46

    You tried to perform something that the data file format cannot, hence the Unsupported language features in query exception.

    Many data file format are write-once and no support ACID operation.

    Apache ORC supports ACID operation if you need it.

    Instead, you can use partition to split your data into folders (/data/year=2017/month=10....), here you can append/insert data into your data lake.

提交回复
热议问题