[
https://issues.apache.org/jira/browse/HIVE-25517?focusedWorklogId=653828&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-653828
]
ASF GitHub Bot logged work on HIVE-25517:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 21/Sep/21 21:06
Start Date: 21/Sep/21 21:06
Worklog Time Spent: 10m
Work Description: nrg4878 commented on a change in pull request #2638:
URL: https://github.com/apache/hive/pull/2638#discussion_r713419101
##########
File path:
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/Warehouse.java
##########
@@ -355,7 +355,11 @@ public Path getDefaultTablePath(Database db, String
tableName, boolean isExterna
Path dbPath = null;
if (isExternal) {
dbPath = new Path(db.getLocationUri());
- if (FileUtils.isSubdirectory(getWhRoot().toString(), dbPath.toString() +
Path.SEPARATOR)) {
+ Path dbLocation = Path.getPathWithoutSchemeAndAuthority(dbPath);
Review comment:
This is a common API thats used by other areas of the code in Hive. I am
concerned that doing a scheme-less path comparison might cause issues.
dbPath is the location set on the Database object which has the scheme. for
ex: s3 or hdfs.
if we do a scheme-less comparison, s3://user/warehouse/hive/mydb.db/mytable
will be considered a managed location if the warehouse root is set to
"hdfs://user/warehouse/hive".
Do you see a downside with just toString comparison?
--
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: 653828)
Time Spent: 50m (was: 40m)
> 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: 50m
> 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)