-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
test(ingest/delta-lake): fix spurious directory creation #7179
Conversation
4cbfe07
to
6a6e578
Compare
@@ -29,6 +30,13 @@ def read_delta_table( | |||
opts[ | |||
"AWS_ENDPOINT_URL" | |||
] = delta_lake_config.s3.aws_config.aws_endpoint_url | |||
else: | |||
# Local file system | |||
if not pathlib.Path(path).exists(): |
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.
What is this new block achieving? basically if the file doesn't exist then... terminate early and don't let the file get created by DeltaTable constructor?
I think this makes sense want to check my understanding
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.
Overall LGTM
Fixes broken CI. Example failure: https://github.com/datahub-project/datahub/actions/runs/4036967595/jobs/6958714314
Checklist