Reputation: 575
let's assume that we have an external Hive table pointing on CSVs files on an hdfs directory.
so what happened when inserting a new line on this table using hive :
Same question for the update operation
thanks in advance !
Upvotes: 0
Views: 676
Reputation: 477
Answering your question, thinking that you are using an insert statement and not using INSERT OVERWRITE
with files.
Even if you use INSERT INTO
and insert some files, then those new files will come and sit in the particular directory in HDFS without impacting existing files.
If you are using INSERT OVERWRITE
all the files present in the directory of the given table will be deleted and new files will be placed in that directory.
Upvotes: 1