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

Docs: rest_api tutorial: update primary key in merge example #2147

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/website/docs/tutorial/rest-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ pokemon_source = rest_api_source(
# the primary key and write disposition
{
"name": "pokemon",
"primary_key": "id",
"primary_key": "name",
"write_disposition": "merge",
},
# The `berry` and `location` resources will use the default
Expand All @@ -257,7 +257,7 @@ pokemon_source = rest_api_source(
)
```

Run the pipeline with `python rest_api_pipeline.py`, the data for the `pokemon` resource will be merged with the existing data in the destination table based on the `id` field.
Run the pipeline with `python rest_api_pipeline.py`, the data for the `pokemon` resource will be merged with the existing data in the destination table based on the `name` field.

## Loading data incrementally

Expand Down
Loading