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

feat(ingest/snowflake): support profiling with sampling #8902

Conversation

mayurinehate
Copy link
Collaborator

@mayurinehate mayurinehate commented Sep 26, 2023

Would be easier to review commit-wise
Commit 1 - initial refractor to remove duplicate profiling related code

Commit 2 - snowflake profiling with sampling

Commit 3 - increase default sample size, use fraction based sampling

  • 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 Sep 26, 2023
"If enabled, profiling is done on rows sampled from table. Sampling is not done for smaller tables. ",
)

sample_size: int = Field(
default=1000,
default=10000,
description="Number of rows to be sampled from table for column level profiling."
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Increasing default based on @asikowitz suggestion here

)
elif self.custom_sql:
profile.partitionSpec = PartitionSpecClass(
type=PartitionTypeClass.QUERY, partition="SAMPLE"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we want want to put custom_sql in the aspect? Hard to make decisions when it's unused

@asikowitz asikowitz merged commit 8e7f286 into datahub-project:master Oct 6, 2023
57 of 58 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.

None yet

2 participants