Skip to content

Commit

Permalink
Merge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mjonss committed Dec 23, 2022
1 parent 5632e4a commit 4702033
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions executor/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -3527,10 +3527,14 @@ func getPartitionKeyColOffsets(keyColIDs []int64, pt table.PartitionedTable) []i
keyColOffsets[i] = offset
}

pe, err := pt.(interface {
PartitionExpr() (*tables.PartitionExpr, error)
}).PartitionExpr()
if err != nil {
t, ok := pt.(interface {
PartitionExpr() *tables.PartitionExpr
})
if !ok {
return nil
}
pe := t.PartitionExpr()
if pe == nil {
return nil
}

Expand Down

0 comments on commit 4702033

Please sign in to comment.