Skip to content

Commit 69c6c5e

Browse files
committed
chore(clickhouse): add target table identifier to error message
1 parent 0e541ca commit 69c6c5e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

materialize-clickhouse/driver.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,11 +564,12 @@ func (t *transactor) Acknowledge(ctx context.Context) (*pf.ConnectorState, error
564564
for stateKey, si := range t.state {
565565
// Skip targets tables which do not have a binding anymore
566566
// since these tables might be deleted already
567-
if _, found := t.bindingForStateKey(stateKey); !found {
567+
b, found := t.bindingForStateKey(stateKey)
568+
if !found {
568569
continue
569570
}
570571
if err := t.moveStorePartitionsToTarget(ctx, si); err != nil {
571-
return nil, fmt.Errorf("moving stage to target: %w", err)
572+
return nil, fmt.Errorf("moving stage to target %s: %w", b.target.Identifier, err)
572573
}
573574
}
574575
t.recovery = false

0 commit comments

Comments
 (0)