-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
made CTEs and some columns use alias, eliminate whitespace (#999)
This is part of a series of PRs to address the size of our BigQuery merge statements. The maximum supported size for a single BQ query is 1MB and really wide tables with a lot of TOAST columns can cause our merge statement generator to generate queries that BigQuery cannot execute. For this PR: 1) Remove unnecessary whitespace in merge statements. 2) Change our CTEs to use shorter aliases, _peerdb_deduped -> _d etc. 3) Alias some of our frequently used raw table columns: _peerdb_unchanged_toast_columns -> _ut.
- Loading branch information
1 parent
803abf1
commit 6a263b2
Showing
2 changed files
with
70 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters