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

making BQ merge a single statement without temp tables #889

Merged
merged 4 commits into from
Dec 24, 2023

Conversation

heavycrystal
Copy link
Contributor

No description provided.

c.datasetID, MirrorJobsTable, syncBatchID, req.FlowJobName)
stmts = append(stmts, updateMetadataStmt)
stmts = append(stmts, "COMMIT TRANSACTION;")
fmt.Println(stmts)
Copy link
Contributor

Choose a reason for hiding this comment

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

remove print

@heavycrystal heavycrystal enabled auto-merge (squash) December 24, 2023 06:09
@heavycrystal heavycrystal merged commit b160753 into main Dec 24, 2023
7 checks passed
serprex added a commit that referenced this pull request Dec 24, 2023
Discussed with Kevin BQ lock contention. He made #889 to remove temp table

Merge is idempotent, so no need to have transaction,
which removes need to have advisory lock on catalog
serprex added a commit that referenced this pull request Dec 24, 2023
Discussed with Kevin BQ lock contention. He made #889 to remove temp table

Merge is idempotent, so no need to have transaction,
which removes need to have advisory lock on catalog
serprex added a commit that referenced this pull request Dec 25, 2023
Discussed with Kevin BQ lock contention,
he made #889 to remove temp table

Merge is idempotent, so no need to have transaction,
which removes need to have advisory lock on catalog
@serprex serprex deleted the bq-single-statement-merge branch July 19, 2024 15:21
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.

3 participants