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/profiling): ignore limit/offset when counting table row count in profiling #9635

Merged

Conversation

treff7es
Copy link
Contributor

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 16, 2024
Comment on lines +422 to +429
if (self.config.limit or self.config.offset) and not self.custom_sql:
# We don't want limit and offset to get applied to the row count
# This is kinda hacky way to do it, but every other way would require major refactoring
dataset_profile.rowCount = self.dataset.get_row_count(
self.dataset_name.split(".")[-1]
)
else:
dataset_profile.rowCount = self.dataset.get_row_count()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add these two cases to the existing if / else block? Also, how does this work...? Can you elaborate in the comment because I don't get it lol

@hsheth2 hsheth2 changed the title fix(ingest/profiling): Ignore limit/offset when counting table row count in profiling. fix(ingest/profiling): ignore limit/offset when counting table row count in profiling Feb 13, 2024
@hsheth2 hsheth2 merged commit 89018e2 into datahub-project:master Feb 13, 2024
54 checks passed
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.

3 participants