Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eventhub fixes with Composite PKeys Support #379

Merged
merged 7 commits into from
Sep 7, 2023
Merged

Conversation

Amogh-Bharadwaj
Copy link
Contributor

No description provided.

@Amogh-Bharadwaj Amogh-Bharadwaj changed the base branch from main to composite-keys-v2 September 7, 2023 16:37
@Amogh-Bharadwaj Amogh-Bharadwaj marked this pull request as ready for review September 7, 2023 16:37
@Amogh-Bharadwaj Amogh-Bharadwaj changed the base branch from composite-keys-v2 to testing September 7, 2023 16:39
@@ -26,6 +27,8 @@ const (
_peerdb_timestamp BIGINT NOT NULL,_peerdb_destination_table_name TEXT NOT NULL,_peerdb_data JSONB NOT NULL,
_peerdb_record_type INTEGER NOT NULL, _peerdb_match_data JSONB,_peerdb_batch_id INTEGER,
_peerdb_unchanged_toast_columns TEXT)`
createRawTableBatchIDIndexSQL = "CREATE INDEX IF NOT EXISTS %s_batchid_idx ON %s.%s(_peerdb_batch_id)"
createRawTableDstTableIndexSQL = "CREATE INDEX IF NOT EXISTS %s_dst_table_idx ON %s.%s(_peerdb_destination_table_name)"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci] reported by reviewdog 🐶
line is 123 characters (lll)

replicaIdentity, replicaIdentityErr := c.getReplicaIdentityForTable(schemaTable)
log.Infof("replica identity: %s", replicaIdentity)
if req.DestinationPeerType != protos.DBType_EVENTHUB || replicaIdentityErr != nil || replicaIdentity != "f" {
return nil, fmt.Errorf("error getting primary key column or replica identity for table %s: %w", schemaTable, err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci] reported by reviewdog 🐶
line is 125 characters (lll)

@Amogh-Bharadwaj Amogh-Bharadwaj merged commit 1d20fc6 into testing Sep 7, 2023
Amogh-Bharadwaj added a commit that referenced this pull request Sep 18, 2023
@serprex serprex deleted the eh-with-cpkeys branch July 19, 2024 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants