Skip to content

Commit

Permalink
HIVE-27093: Fix NPE in initialize() of Partition class (apache#4073).…
Browse files Browse the repository at this point in the history
… (Wechar, reviewed by Ayush Saxena)
  • Loading branch information
wecharyu authored Dec 7, 2023
1 parent 6495d31 commit fd6ced2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ protected void initialize(Table table,
return;
}

if (table.isPartitioned()) {
if (table.isPartitioned() && tPartition.isSetSd()) {
try {
if (tPartition.getSd().getLocation() == null) {
// set default if location is not set and this is a physical
Expand Down

0 comments on commit fd6ced2

Please sign in to comment.