Table
Data
Merge insert (upsert) records into a table
Performs a merge insert (upsert) operation on table id. This operation updates existing rows based on a matching column and inserts new rows that don't match. It returns the number of rows inserted and updated.
For tables that have been declared but not yet created on storage (is_only_declared=true), this operation will create the table with the provided data (since there are no existing rows to merge with).
REST NAMESPACE ONLY REST namespace uses Arrow IPC stream as the request body. It passes in the MergeInsertIntoTableRequest information in the following way:
- id: pass through path parameter of the same name
- on: pass through query parameter of the same name
- when_matched_update_all: pass through query parameter of the same name
- when_matched_update_all_filt: pass through query parameter of the same name
- when_not_matched_insert_all: pass through query parameter of the same name
- when_not_matched_by_source_delete: pass through query parameter of the same name
- when_not_matched_by_source_delete_filt: pass through query parameter of the same name
post/v1/table/{id}/merge_insert
Response
Result of merge insert operation