Add MERGE functionality
See original GitHub issueIn BigQuery it is possible to merge two tables:
MERGE DATASET.table T
USING (SELECT * FROM DATASET.another_table) S
ON T.id = S.id
WHEN MATCHED THEN
UPDATE SET value = S.value
WHEN NOT MATCHED THEN
INSERT ROW
Is it possible to add such functionality to DataFrame.to_gbq function? I.e. something like df.to_gbq(if_exists='merge', on_a='id', on_b='id'), or even provide a possibilty to write a whole ON clause df.to_gbq(if_exists='merge', on='A.city = B.city AND A.date = B.date'
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:12 (1 by maintainers)
Top Results From Across the Web
Merge features into one feature—ArcGIS Pro | Documentation
Merge existing features Click the Existing Feature tab. and select the features on the same layer you want to merge. The selected features...
Read more >BusinessObjects: Merge Data from Multiple Queries
The merge function in BusinessObjects makes it possible to create a report that displays query results from multiple data sets. You can merge:....
Read more >Merging Records | Apex Developer Guide
Then it executes queries to get the new account records from the database, and adds a contact to the account to be merged....
Read more >Set the rules for a mail merge - Microsoft Support
Setting up rules is done after selecting recipients for the mail merge, and after inserting merge fields in the document.. Go to Mailings...
Read more >Merge Duplicate Records in Salesforce Lightning
Simply navigate to the Duplicate Record Set of the object in question, select related and add junction records from the set to the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@violetbrina , PRs are welcome!
I’m not yet familiar with pandas-gbq codebase, so it will take me a while. In my projects, I split data into batches and merge them into the main using temporary tables. Can we just do like this? Here’s the psedocode: