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

Eugene Koifman commented on HIVE-21100:
---------------------------------------

What is the motivation for this change?

Doing FileSystem.rename() on a system like S3 is expensive.

 

> Allow flattening of table subdirectories resulted when using TEZ engine and 
> UNION clause
> ----------------------------------------------------------------------------------------
>
>                 Key: HIVE-21100
>                 URL: https://issues.apache.org/jira/browse/HIVE-21100
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: George Pachitariu
>            Assignee: George Pachitariu
>            Priority: Minor
>         Attachments: HIVE-21100.patch
>
>
> Right now, when writing data into a table with Tez engine and the clause 
> UNION ALL is the last step of the query, Hive on Tez will create a 
> subdirectory for each branch of the UNION ALL.
> With this patch the subdirectories are removed, and the files are renamed and 
> moved to the parent directory.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to