Skip to content

Commit

Permalink
docs: fix #2748, "Merge Insert" doc error (#2788)
Browse files Browse the repository at this point in the history
This PR tries to fix #2748 by passing the newly defined table
`new_table` into `execute()` function.
  • Loading branch information
broccoliSpicy committed Aug 26, 2024
1 parent 976b5da commit d5e5a3b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/read_and_write.rst
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ insert operation would be more efficient:
# be a unique key or id of some kind.
dataset.merge_insert("name") \
.when_matched_update_all() \
.execute()
.execute(new_table)
Note that, similar to the update operation, rows that are modified will
be removed and inserted back into the table, changing their position to
Expand Down Expand Up @@ -167,7 +167,7 @@ this:
# This will insert Carla but leave Bob unchanged
dataset.merge_insert("name") \
.when_not_matched_insert_all() \
.execute()
.execute(new_table)
Update or Insert (Upsert)
^^^^^^^^^^^^^^^^^^^^^^^^^
Expand All @@ -191,7 +191,7 @@ the merge insert operation to do this as well:
dataset.merge_insert("name") \
.when_matched_update_all() \
.when_not_matched_insert_all() \
.execute()
.execute(new_table)
Replace a Portion of Data
^^^^^^^^^^^^^^^^^^^^^^^^^
Expand All @@ -214,7 +214,7 @@ example:
dataset.merge_insert("name") \
.when_not_matched_insert_all() \
.when_not_matched_by_source_delete("age >= 40") \
.execute()
.execute(new_table)
Evolving the schema
Expand Down

0 comments on commit d5e5a3b

Please sign in to comment.