Skip to content

Commit

Permalink
Fix partition offline check in HiveSplitManager
Browse files Browse the repository at this point in the history
It is checking the table parameters rather than partition parameters.
The bug is introduced in f8824b1.
  • Loading branch information
wenleix committed Apr 19, 2018
1 parent 55300c8 commit ab46f24
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ private Iterable<HivePartitionMetadata> getPartitionMetadata(SemiTransactionalHi
String partName = makePartName(table.getPartitionColumns(), partition.getValues());

// verify partition is online
verifyOnline(tableName, Optional.of(partName), getProtectMode(partition), table.getParameters());
verifyOnline(tableName, Optional.of(partName), getProtectMode(partition), partition.getParameters());

// verify partition is not marked as non-readable
String partitionNotReadable = partition.getParameters().get(OBJECT_NOT_READABLE);
Expand Down

0 comments on commit ab46f24

Please sign in to comment.