[ https://issues.apache.org/jira/browse/HIVE-26217?focusedWorklogId=774363&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-774363 ]
ASF GitHub Bot logged work on HIVE-26217: ----------------------------------------- Author: ASF GitHub Bot Created on: 25/May/22 05:03 Start Date: 25/May/22 05:03 Worklog Time Spent: 10m Work Description: SourabhBadhya commented on code in PR #3281: URL: https://github.com/apache/hive/pull/3281#discussion_r881219364 ########## ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java: ########## @@ -7934,6 +7958,45 @@ protected Operator genFileSinkPlan(String dest, QB qb, Operator input) return output; } + private Path getCTASDestinationTableLocation(CreateTableDesc tblDesc, boolean enableSuffixing) throws SemanticException { Review Comment: Create table flow happens at the DDLTask which is after the query is analyzed, compiled & data is written in CTAS AFAIK. Hence this path is set before the create table flow. This path is used by the FileSinkOperators to write the data. Issue Time Tracking ------------------- Worklog Id: (was: 774363) Time Spent: 4.5h (was: 4h 20m) > Make CTAS use Direct Insert Semantics > ------------------------------------- > > Key: HIVE-26217 > URL: https://issues.apache.org/jira/browse/HIVE-26217 > Project: Hive > Issue Type: Improvement > Reporter: Sourabh Badhya > Assignee: Sourabh Badhya > Priority: Major > Labels: pull-request-available > Time Spent: 4.5h > Remaining Estimate: 0h > > CTAS on transactional tables currently does a copy from staging location to > table location. This can be avoided by using Direct Insert semantics. Added > support for suffixed table locations as well. -- This message was sent by Atlassian Jira (v8.20.7#820007)