-
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
SAT: cursor_paths should support custom nested and absolute paths #4552
Conversation
return pendulum.parse(value) | ||
return value | ||
|
||
def parse(self, record, path=None) -> Any: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add typehints to this method?
class Field: | ||
"""Field class to represent cursor/pk fields""" | ||
|
||
def __init__(self, schema, path): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add typehints?
|
||
import pendulum | ||
|
||
|
||
class Field: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this class!
maybe a better name for this class would be CatalogField
? Just trying to avoid conflict with Field
which is already used by pydantic
...e-integrations/bases/source-acceptance-test/source_acceptance_test/tests/test_incremental.py
Show resolved
Hide resolved
…tance_test/tests/test_incremental.py Co-authored-by: Sherif A. Nada <snadalive@gmail.com>
/publish connector=bases/source-acceptance-test
|
because other PR has being published but not merged (https://github.com/airbytehq/airbyte/pull/4478/files)
bumping version to 0.1.8 because 0.1.7 has being published but not merged |
/publish connector=bases/source-acceptance-test
|
What
These changes allow to specify cursor path in state file as following:
this covers custom states that singer produces and states for nested streams when we include parent stream ID in the path.
How
Describe the solution
Recommended reading order
x.java
y.python
Pre-merge Checklist
Expand the checklist which is relevant for this PR.