Commit 786b1f3b by Aaron Dossett

potential fix for HiveMetaStoreBridge

cleanup commented out code potential fix for HiveMetaStoreBridge cleanup commented out code potential fix for HiveMetaStoreBridge
parent 64c78442
...@@ -203,10 +203,7 @@ public class HiveMetaStoreBridge { ...@@ -203,10 +203,7 @@ public class HiveMetaStoreBridge {
Referenceable dbReferenceable, Referenceable dbReferenceable,
Referenceable tableReferenceable, Referenceable tableReferenceable,
Referenceable sdReferenceable) throws Exception { Referenceable sdReferenceable) throws Exception {
Table table = new Table(); Set<Partition> tableParts = hiveClient.getAllPartitionsOf(new Table(Table.getEmptyTable(db, tableName)));
table.setDbName(db);
table.setTableName(tableName);
Set<Partition> tableParts = hiveClient.getAllPartitionsOf(table);
if (tableParts.size() > 0) { if (tableParts.size() > 0) {
for (Partition hivePart : tableParts) { 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