Skip to content

Commit

Permalink
[fix](planner) throw NPE when insert overwrite partition(*) (#40656)
Browse files Browse the repository at this point in the history
pick from master #40656
  • Loading branch information
morrySnow committed Oct 11, 2024
1 parent ca6c4c4 commit 5653d00
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ public QueryStmt getQueryStmt() {
}

public List<String> getPartitionNames() {
if (target.getPartitionNames() == null) {
if (target.getPartitionNames() == null
|| target.getPartitionNames().getPartitionNames() == null
|| target.getPartitionNames().isStar()) {
return new ArrayList<>();
}
return target.getPartitionNames().getPartitionNames();
Expand Down

0 comments on commit 5653d00

Please sign in to comment.