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

Fix(ingest/bigquery): fix extracting comments from complex types #8950

Merged

Conversation

maaaikoool
Copy link
Contributor

Closes #8763

Fixes a conditional to extract the field description when the field is part of a record. SchemaFields are lower case, while BigQueryColumns have the original column name.

Checklist

  • [X ] 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

@maggiehays maggiehays added the community-contribution PR or Issue raised by member(s) of DataHub Community label Oct 4, 2023
@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label Oct 4, 2023
Copy link
Collaborator

@mayurinehate mayurinehate left a comment

Choose a reason for hiding this comment

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

Tested with table having a complex type with uppercase leaf node and able to reproduce the issue.

If the root node of complex type is also in uppercase, the suggested change is required.
Otherwise looks good.

maaaikoool and others added 2 commits October 25, 2023 15:09
…gquery.py


add suggestion

Co-authored-by: Mayuri Nehate <33225191+mayurinehate@users.noreply.github.com>
Copy link
Collaborator

@mayurinehate mayurinehate left a comment

Choose a reason for hiding this comment

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

LGTM

@maggiehays maggiehays added the hacktoberfest-accepted Acceptance for hacktoberfest https://hacktoberfest.com/participation/ label Oct 26, 2023
Copy link
Collaborator

@mayurinehate mayurinehate left a comment

Choose a reason for hiding this comment

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

@hsheth2 hsheth2 merged commit cf617d7 into datahub-project:master Oct 27, 2023
54 checks passed
@maaaikoool maaaikoool deleted the fix-bq-ingest-nested-descriptions branch October 27, 2023 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-contribution PR or Issue raised by member(s) of DataHub Community hacktoberfest-accepted Acceptance for hacktoberfest https://hacktoberfest.com/participation/ ingestion PR or Issue related to the ingestion of metadata
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BigQuery nested fields missing descriptions
6 participants