Skip to content
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

Merged
merged 1 commit into from
Jan 30, 2023

Conversation

hsheth2
Copy link
Collaborator

@hsheth2 hsheth2 commented Jan 30, 2023

Fixes broken CI. Example failure: https://github.com/datahub-project/datahub/actions/runs/4036967595/jobs/6958714314

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label Jan 30, 2023
@hsheth2 hsheth2 changed the title ci(ingest): fix broken CI workflow for metadata-ingestion test(ingest/delta-lake): fix spurious directory creation Jan 30, 2023
@@ -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():
Copy link
Collaborator

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

Copy link
Collaborator

@jjoyce0510 jjoyce0510 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM

@jjoyce0510 jjoyce0510 merged commit b4114c6 into datahub-project:master Jan 30, 2023
danielcmessias pushed a commit to danielcmessias/datahub that referenced this pull request Feb 1, 2023
ericyomi pushed a commit to ericyomi/datahub that referenced this pull request Feb 8, 2023
@hsheth2 hsheth2 deleted the delta-lkae-dirs branch February 14, 2024 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ingestion PR or Issue related to the ingestion of metadata
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants