fix the drop table bug HIVE-2817