1.

If you omit the OVERWRITE clause while creating a hive table,what happens to file which are new and files which already exist?

Answer»

The new incoming files are just added to the target directory and the existing files are simply overwritten. Other files whose name does not match any of the incoming files will continue to exist.

If you add the OVERWRITE clause then all the existing data in the directory will be deleted before new data is written.



Discussion

No Comment Found