marton-bod commented on issue #2554:
URL: https://github.com/apache/iceberg/issues/2554#issuecomment-833449999


   This is a good point, and I think we can and should guard against that. The 
table currently becomes undroppable only because we try to load the Iceberg 
table prior to dropping the HMS table. We do this because Hive2 and Hive3 do 
not clean up the metadata folder completely so we need to cache the io to 
perform the deletion later. 
   
   What we can do instead is try to load the Iceberg table as it is, but if it 
fails, just log a warning message that the table was unloadable for whatever 
reason, but otherwise proceed with the HMS table drop. This might leave some 
undeleted metadata files behind but it's still much better than leaving the 
table undroppable.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to