hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shuaishuai Nie" <>
Subject Review Request 16826: Review for HIVE-5032 Enable hive creating external table at the root directory of DFS
Date Mon, 13 Jan 2014 18:35:46 GMT

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

Review request for hive, Ashutosh Chauhan and Thejas Nair.

Bugs: hive-5032

Repository: hive-git


Creating external table using HIVE with location point to the root directory of DFS will fail
because the function HiveFileFormatUtils#doGetPartitionDescFromPath treat authority of the
path the same as folder and cannot find a match in the "pathToPartitionInfo" table when doing
prefix match. Instead of modify the path string for recursive prefix match, this patch use
Path.getParent() to get the prefix for the path. This approach solve the failed corner cases
of original implementation.


  itests/qtest/pom.xml 3d3f3f8 
  ql/src/java/org/apache/hadoop/hive/ql/io/ 4be56f3 
  ql/src/test/queries/clientpositive/root_dir_external_table.q PRE-CREATION 
  ql/src/test/results/clientpositive/root_dir_external_table.q.out PRE-CREATION 



unit test added


Shuaishuai Nie

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