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

Remove duplicate paragraph #18662

Merged
merged 1 commit into from
Oct 31, 2022
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
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,15 @@ The start time is defined in the config file, while the end time is defined by t
Note that we're also setting the `stream_cursor_field` in the stream's `$options` so it can be accessed by the `StreamSlicer`:

```yaml
streams:
- type: DeclarativeStream
definitions:
<...>
rates_stream:
$ref: "*ref(definitions.base_stream)"
$options:
name: "rates"
primary_key: "date"
path: "/exchangerates_data/{{config['start_date'] or 'latest'}}"
stream_cursor_field: "date"
primary_key: "rates"
<...>
```

We'll also update the retriever to user the stream slicer:
Expand All @@ -138,20 +140,6 @@ definitions:
This will generate slices from the start time until the end time, where each slice is exactly one day.
The start time is defined in the config file, while the end time is defined by the `now_utc()` macro, which will evaluate to the current date in the current timezone at runtime. See the section on [string interpolation](../advanced-topics.md#string-interpolation) for more details.

Note that we're also setting the `stream_cursor_field` in the stream's `$options` so it can be accessed by the `StreamSlicer`:

```yaml
definitions:
<...>
rates_stream:
$ref: "*ref(definitions.base_stream)"
$options:
name: "rates"
primary_key: "date"
path: "/exchangerates_data/{{config['start_date'] or 'latest'}}"
stream_cursor_field: "date"
```

Finally, we'll update the path to point to the `stream_slice`'s start_time

```yaml
Expand Down Expand Up @@ -299,4 +287,4 @@ Next, we'll run the [Source Acceptance Tests suite to ensure the connector invar

- [Incremental reads](../../cdk-python/incremental-stream.md)
- [Stream slicers](../understanding-the-yaml-file/stream-slicers.md)
- [Stream slices](../../cdk-python/stream-slices.md)
- [Stream slices](../../cdk-python/stream-slices.md)