hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Yang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-12215) Exchange partition does not show outputs field for post/pre execute hooks
Date Tue, 12 Jan 2016 03:31:39 GMT

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

Paul Yang commented on HIVE-12215:
----------------------------------

I noticed from test query logs that the inputs are empty - shouldn't it contain the source
partition? That is, the read entity should be populated along with the write entity. Otherwise,
it would not be possible to tell from which partition it was exchanged from.

> Exchange partition does not show outputs field for post/pre execute hooks
> -------------------------------------------------------------------------
>
>                 Key: HIVE-12215
>                 URL: https://issues.apache.org/jira/browse/HIVE-12215
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 2.0.0
>            Reporter: Aihua Xu
>            Assignee: Aihua Xu
>             Fix For: 2.0.0
>
>         Attachments: HIVE-12215.2.patch, HIVE-12215.3.patch, HIVE-12215.patch
>
>
> The pre/post execute hook interface has fields that indicate which Hive objects were
read / written to as a result of running the query. For the exchange partition operation,
these fields (ReadEntity and WriteEntity) are empty. 
> This is an important issue as the hook interface may be configured to perform critical
warehouse operations.
> See
> {noformat}
> ql/src/test/results/clientpositive/exchange_partition3.q.out
> {noformat}
> {noformat}
> PREHOOK: query: -- This will exchange both partitions hr=1 and hr=2
> ALTER TABLE exchange_part_test1 EXCHANGE PARTITION (ds='2013-04-05') WITH TABLE exchange_part_test2
> PREHOOK: type: ALTERTABLE_EXCHANGEPARTITION
> POSTHOOK: query: -- This will exchange both partitions hr=1 and hr=2
> ALTER TABLE exchange_part_test1 EXCHANGE PARTITION (ds='2013-04-05') WITH TABLE exchange_part_test2
> POSTHOOK: type: ALTERTABLE_EXCHANGEPARTITION
> {noformat}
> Seems it should also print output fields.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message