Skip to content

Commit

Permalink
reintroduce not erroring out when no primary keys && isFullReplica (#550
Browse files Browse the repository at this point in the history
)
  • Loading branch information
heavycrystal authored Oct 21, 2023
1 parent c9b6afe commit 9a3e1ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flow/connectors/postgres/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,9 @@ func (c *PostgresConnector) getTableSchemaForTable(

pKeyCols, err := c.getPrimaryKeyColumns(schemaTable)
if err != nil {
return nil, fmt.Errorf("error getting primary key column for table %s: %w", schemaTable, err)
if !isFullReplica {
return nil, fmt.Errorf("error getting primary key column for table %s: %w", schemaTable, err)
}
}

res := &protos.TableSchema{
Expand Down

0 comments on commit 9a3e1ee

Please sign in to comment.