-
Notifications
You must be signed in to change notification settings - Fork 3k
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): use snowflake median function in profiling #6987
Conversation
@@ -358,7 +359,16 @@ def _get_dataset_column_median( | |||
if not self.config.include_field_median_value: | |||
return | |||
try: | |||
column_profile.median = str(self.dataset.get_column_median(column)) | |||
if self.dataset.engine.dialect.name.lower() == "snowflake": |
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.
Are these dialect names defined in a central config somewhere?
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.
no - these come from sqlalchemy's dialect names
agree that we should refactor into an enum (GE itself did a similar thing a few months ago), but probably for a separate PR
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.
LGTM.
Suggested via https://datahubspace.slack.com/archives/CUMUWQU66/p1673264591225749.
Checklist