[ https://issues.apache.org/jira/browse/HIVE-2980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13261875#comment-13261875 ]
sukhendu chakraborty commented on HIVE-2980: -------------------------------------------- I tend to disagree with Ashutosh. When a table is created a corresponding directory is created in the in /<hive path>/warehouse. So, technically, this directory is part of the table metadata. Therefore, if this directory is erroneously deleted, the table metadata is in a inconsistent state and the user should be notified about it. If you remove all the files inside the directory, then its the same as an empty table and a select should pass with 0 rows returned. > Show a warning or an error when the data directory is empty or not existing > ---------------------------------------------------------------------------- > > Key: HIVE-2980 > URL: https://issues.apache.org/jira/browse/HIVE-2980 > Project: Hive > Issue Type: Improvement > Components: Diagnosability, Metastore > Reporter: Nitin Pawar > > It looks like a good idea to show a warning or an error when the data > directory is missing or empty. > This will help in cut down the debugging time as well a good information to > have on the deleted data -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira