-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
DatetimeBasedCursor should support incremental syncs without steps #26570
Comments
A connector builder user has run into an issue that I believe is related to Step. Pasting my email response here for context:
|
Grooming notes:
At first, the proposition was to have a
However, this would implies a migration. Therefore, we will keep the same schema for now |
What area the feature impact?
Connectors
Revelant Information
Tell us about the problem you're trying to solve
Today when configuring an incremental sync, the concept of step and granularity is very confusing for a couple of reasons:
It is possible to create a sync that is incremental without providing those. Therefore, those values should be optional.
Describe the solution you’d like
Bundleand make them optional. This means that this YAML component is valid:step
andgranularity
togetherwhich would lead to only one slice.
However, we can define it like this:
... which will create multiple slices. We can set the step to
timedelta.max
within the DatetimeBasedCursor or something when the step is not provided. It should stop iterating at end_datetime so it should be fine.Acceptance Criteria
step
andcursor_granularity
is definedstep
andcursor_granularity
docs
folder anddeclarative_component_schema.yaml
)The text was updated successfully, but these errors were encountered: