-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Fix AWS system test example_dynamodb_to_s3 #31362
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
Conversation
| TableName=table_name, | ||
| ) | ||
|
|
||
| return r["ContinuousBackupsDescription"]["PointInTimeRecoveryDescription"]["EarliestRestorableDateTime"] |
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.
Oh, that's nicer than my created time idea. Nice find.
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.
This looks good! thanks for taking care of this.
| def _export_entire_data(self): | ||
| """Export all data from the table.""" | ||
| table = self.hook.get_conn().Table(self.dynamodb_table_name) | ||
| table = self.hook.conn.Table(self.dynamodb_table_name) |
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.
| "dynamodb_table_name", | ||
| "s3_bucket_name", | ||
| "file_size", | ||
| "dynamodb_scan_kwargs", | ||
| "s3_key_prefix", | ||
| "dynamodb_table_name", | ||
| "process_func", | ||
| "export_time", | ||
| "export_format", |
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.
|
One of your unit tests are failing, bit otherwise LGTM. Some nice nitpick catches in there as well, thanks for those. |
|
@vincbeck Thanks for handling the timezone scenario as well. LGTM :) |
|
(Approved - pending the unit-test fix :) |
|
All green :) |
|
🎉 🎉 🎉 🎉 🎉 |

The system test
example_dynamodb_to_s3is currently failing for multiple reasons:describe_continuous_backupsAPI.See related: #31307
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rstor{issue_number}.significant.rst, in newsfragments.