Skip to content

Commit

Permalink
Correct wrong code example for apply_hints( incremental(xx) ) (#1785)
Browse files Browse the repository at this point in the history
the `initial_value` is a parameter of `dlt.sources.incremental`.
  • Loading branch information
w0ut0 authored Sep 6, 2024
1 parent 301d0a2 commit 1b66e0e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ certain range.
```py
source = sql_database().with_resources("family")
#using the "updated" field as an incremental field using initial value of January 1, 2022, at midnight
source.family.apply_hints(incremental=dlt.sources.incremental("updated"),initial_value=pendulum.DateTime(2022, 1, 1, 0, 0, 0))
source.family.apply_hints(incremental=dlt.sources.incremental("updated", initial_value=pendulum.DateTime(2022, 1, 1, 0, 0, 0)))
#running the pipeline
info = pipeline.run(source, write_disposition="merge")
print(info)
Expand Down

0 comments on commit 1b66e0e

Please sign in to comment.