Skip to content

Commit

Permalink
sakila import
Browse files Browse the repository at this point in the history
  • Loading branch information
RangelReale committed Nov 29, 2024
1 parent af6c360 commit e5869b6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions resolve.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ func Resolve(ctx context.Context, data *Data, resolveFunc ResolveCallback, optio
}
}

if len(tableIDOrder) != len(data.Tables) {
return nil, NewResolveErrorf("internal error: expected to resolve %d tables but dependency graph returned only %d",
len(data.Tables), len(tableIDOrder))
}

resolvedData.TableOrder = tableIDOrder

// resolve table's rows in dependency order
Expand Down

0 comments on commit e5869b6

Please sign in to comment.