-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not check for S3 key before attempting download (#19504)
S3Hook.download_file first checks object existence then downloads. This resolves creds 2 times. We don't need to check existence. Just ask for the key and if it's not there you'll know from the error. And if it is there, you'll only have resolved creds once. Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>
- Loading branch information
Showing
2 changed files
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters