[ 
https://issues.apache.org/jira/browse/HIVE-25517?focusedWorklogId=650504&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-650504
 ]

ASF GitHub Bot logged work on HIVE-25517:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 14/Sep/21 11:02
            Start Date: 14/Sep/21 11:02
    Worklog Time Spent: 10m 
      Work Description: sourabh912 edited a comment on pull request #2638:
URL: https://github.com/apache/hive/pull/2638#issuecomment-919042422


   @nrg4878 : Seems like the check at this line: 
https://github.com/apache/hive/blob/0713b97447070df177851f8183b918dff4642f57/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetastoreDefaultTransformer.java#L938
 has a bug. If whRootPath is say /user/hive/warehouse and user tries to create 
external table like
   
   create external table TAB1 (c1 int) location '/user/hive/warehouse'; 
   The query succeeds whereas as it should have failed. 
   The reason for this is that the check whRootPath.equals(tablePath) is 
missing.  If my understanding is correct, then same check is missing at other 
places as well where FileUtils.isSubdirectory() check is done. 
   
   thoughts? 


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 650504)
    Time Spent: 40m  (was: 0.5h)

> Follow up on HIVE-24951: External Table created with Uppercase name using 
> CTAS does not produce result for select queries
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-25517
>                 URL: https://issues.apache.org/jira/browse/HIVE-25517
>             Project: Hive
>          Issue Type: Improvement
>          Components: Metastore
>    Affects Versions: 4.0.0
>            Reporter: Sourabh Goyal
>            Assignee: Sourabh Goyal
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> In [PR|https://github.com/apache/hive/pull/2125] for HIVE-24951, the 
> recommendation was to use getDefaultTablePath() to set the location for an 
> external table. This Jira addresses that and makes getDefaultTablePath() more 
> generic.
>  
> cc - [~ngangam]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to