hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marta Kuczora via Review Board <>
Subject Review Request 65730: HIVE-18697: The HiveMetastore.exchange_partitions method throws FileNotFoundException if the given partition doesn't exist in the source table
Date Wed, 21 Feb 2018 10:36:10 GMT

This is an automatically generated e-mail. To reply, visit:

Review request for hive, Peter Vary and Adam Szita.

Bugs: HIVE-18697

Repository: hive-git


Extended the HiveMetastore.exchange_partitions method to check if the partitionsToExchange
list is empty and if it is throw a MetaException with a proper error message that no partition
exists with the given values for the source table. Previously a FileNotFoundException was
thrown (wrapped in a MetaException) when tried to move the partition folder to the dest table.
So the type of the exception was not changed, only the error message.


  standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/ 47de215




There are tests for this use case in TestExchangePartitions:
- testExchangePartitionsNoPartExists
- testExchangePartitionNoPartExists


Marta Kuczora

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message