[ 
https://issues.apache.org/jira/browse/HIVE-7633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14277568#comment-14277568
 ] 

Yin Huai commented on HIVE-7633:
--------------------------------

Changes in HIVE-1537 allows users to specify the location of a table. But, it 
did not change warehouse to correctly return the location of the table. 

> Warehouse#getTablePath() doesn't handle external tables
> -------------------------------------------------------
>
>                 Key: HIVE-7633
>                 URL: https://issues.apache.org/jira/browse/HIVE-7633
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.8.1, 0.9.0, 0.10.0, 0.11.0, 0.12.0, 0.13.0, 0.14.0, 
> 0.13.1
>            Reporter: Joey Echeverria
>            Priority: Critical
>
> Warehouse#getTablePath() takes a DB and a table name. This means it will 
> generate the wrong path for external tables. This can cause a problem if you 
> have an external table on the local file system and HDFS is not currently 
> running when trying to gather statistics.
> getTablePath() should take in the table and see if it's external and has a 
> location before just assuming it's a managed table.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to