aoelvp94 commented on PR #76887: URL: https://github.com/apache/airflow/pull/76887#issuecomment-7023772620
Thanks for the fix and for iterating on the review feedback. I reviewed this alongside #76971, and both fix the reported case: on Azurite + S3Mock, `replace=False` now skips the existing `out/a.txt` instead of raising `ResourceExistsError`. I'm leaning towards #76971 because it compares the exact name `move_file()` writes (`_create_key(...)`) rather than stripping the prefix from the listing. Two cases where that differs: - With `blob_prefix="out/"` and an existing `out/a.txt`, this branch skips `a.txt`, but the operator would write `out//a.txt`, which doesn't exist, so the file is never copied. - The `blob_name` path still compares only the basename, so an existing `blob_name` whose basename differs from the `s3_key` basename is not skipped. Full comparison: https://github.com/apache/airflow/pull/76971#issuecomment-7023690502 Happy to hear if you see it differently. Otherwise, would you be OK consolidating on #76971 and co-reviewing it? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
