9

Hi Please describe the difference between both in hive with example.

Gaurav Gangwar
  • 467
  • 3
  • 11
  • 24
  • 3
    did you at least look for it ? https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL – hlagos Aug 09 '18 at 20:01

1 Answers1

26

DROP TABLE [IF EXISTS] table_name [PURGE];

If you don't use purge the table goes to a Trash directory, from there the table can be recovered after drop it. But if you do use purge table won't go to Trash directory, so it can't be recovered.

Regards !!

juamd
  • 363
  • 2
  • 5