Skip to content

Commit

Permalink
materialize-databricks: reset needsMerge flag after each transaction
Browse files Browse the repository at this point in the history
The next transaction might not have any updates, so reset the `needsMerge` flag
to prevent merge queries from being run indefinitely after one merge query has
been run.
  • Loading branch information
williamhbaker committed Feb 19, 2025
1 parent 004ffff commit 1ec7d89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions materialize-databricks/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ func (d *transactor) Store(it *m.StoreIterator) (_ m.StartCommitFunc, err error)
Queries: queries,
ToDelete: fullPaths,
}
b.needsMerge = false // reset for next round
}

return func(ctx context.Context, runtimeCheckpoint *protocol.Checkpoint) (*pf.ConnectorState, m.OpFuture) {
Expand Down

0 comments on commit 1ec7d89

Please sign in to comment.