-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
CDK: improve day_delta
macro and MinMaxDatetime component
#22400
CDK: improve day_delta
macro and MinMaxDatetime component
#22400
Conversation
Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
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.
So the basic functionality is that when a provided datetime is earlier, then we set it to the boundary. When developing a connector, was there a limitation of the MinMaxDatetime
component that prevented you from using instead of the macro? And if there was, maybe we could try to fold the functionality into the existing component instead of a new jinja macro
oops it seems I have missed that mix/max feature of datetime param |
Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
day_delta
macro and MinMaxDatetime component
I have removed that new macro |
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.
changes look good! non-blocking change, but just a note to add some new tests for this case
airbyte-cdk/python/airbyte_cdk/sources/declarative/datetime/min_max_datetime.py
Show resolved
Hide resolved
Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
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.
thanks for adding the tests!
…q#22400) Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
Signed-off-by: Sergey Chvalyuk grubberr@gmail.com
What
day_delta
- add 2-nd optional parameterformat
MinMaxDatetime
- skip min or maxdatetime
if result of evaluation is empty string