Commit 9b02a58f by Shwetha G S

Merge pull request #70 from hortonworks/FixMetaStoreBridge

potential fix for HiveMetaStoreBridge
parents 64c78442 786b1f3b
......@@ -203,10 +203,7 @@ public class HiveMetaStoreBridge {
Referenceable dbReferenceable,
Referenceable tableReferenceable,
Referenceable sdReferenceable) throws Exception {
Table table = new Table();
table.setDbName(db);
table.setTableName(tableName);
Set<Partition> tableParts = hiveClient.getAllPartitionsOf(table);
Set<Partition> tableParts = hiveClient.getAllPartitionsOf(new Table(Table.getEmptyTable(db, tableName)));
if (tableParts.size() > 0) {
for (Partition hivePart : tableParts) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment