[
https://issues.apache.org/jira/browse/HIVE-26266?focusedWorklogId=779119&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-779119
]
ASF GitHub Bot logged work on HIVE-26266:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 07/Jun/22 14:23
Start Date: 07/Jun/22 14:23
Worklog Time Spent: 10m
Work Description: SourabhBadhya commented on code in PR #3331:
URL: https://github.com/apache/hive/pull/3331#discussion_r891300232
##########
ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java:
##########
@@ -8232,6 +8232,14 @@ private void handleLineage(LoadTableDesc ltd, Operator
output)
Warehouse wh = new Warehouse(conf);
tlocation =
wh.getDefaultTablePath(db.getDatabase(tableDesc.getDatabaseName()),
tName, tableDesc.isExternal());
+
+ if (destinationTable != null) {
+ Table tbl = db.getTranslateTableDryrun(destinationTable.getTTable());
Review Comment:
@kgyrtkirk . Thanks for the review. I have changed the patch so that this is
called when destinationTable is created. Please review this.
Issue Time Tracking
-------------------
Worklog Id: (was: 779119)
Time Spent: 0.5h (was: 20m)
> Column information is not present in lineage for CTAS when custom
> location/translated location is used
> ------------------------------------------------------------------------------------------------------
>
> Key: HIVE-26266
> URL: https://issues.apache.org/jira/browse/HIVE-26266
> Project: Hive
> Issue Type: Bug
> Reporter: Sourabh Badhya
> Assignee: Sourabh Badhya
> Priority: Major
> Labels: metastore_translator, pull-request-available
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Currently CTAS considers only default table location when mapping the
> location to the FileSinkOperator. This will miss the cases when a custom
> location is specified as well as when the table has a translated location.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)