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

[MAINTENANCE] Column Descriptive Metrics: Empty string instead of UNKNOWN if table column type introspection fails #8819

Merged
merged 2 commits into from Oct 10, 2023

Conversation

anthonyburdi
Copy link
Member

@anthonyburdi anthonyburdi commented Oct 10, 2023

Empty string instead of UNKNOWN if table column type introspection fails.

Example:

image

  • Description of PR changes above includes a link to an existing GitHub issue
  • PR title is prefixed with one of: [BUGFIX], [FEATURE], [DOCS], [MAINTENANCE], [CONTRIB]
  • Code is linted - run invoke lint (uses black + ruff)
  • Appropriate tests and docs have been updated

For more information about contributing, see Contribute.

After you submit your PR, keep the page open and monitor the statuses of the various checks made by our continuous integration process at the bottom of the page. Please fix any issues that come up and reach out on Slack if you need help. Thanks for contributing!

@anthonyburdi anthonyburdi self-assigned this Oct 10, 2023
@netlify
Copy link

netlify bot commented Oct 10, 2023

Deploy Preview for niobium-lead-7998 canceled.

Name Link
🔨 Latest commit 69c64fc
🔍 Latest deploy log https://app.netlify.com/sites/niobium-lead-7998/deploys/6525c56c46212400080b1265

@anthonyburdi anthonyburdi requested a review from a team October 10, 2023 21:15
column_types_converted_to_str: list[dict[str, str]] = [
{
"name": raw_column_type["name"],
"type": str(raw_column_type.get("type", "UNKNOWN")),
"type": str(raw_column_type.get("type", "")),
Copy link
Member

Choose a reason for hiding this comment

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

Could you leave the type field out?
Although my assumption is that is a required field.

Copy link
Member Author

Choose a reason for hiding this comment

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

Currently it's required e.g. https://github.com/greatexpectationslabs/mercury/blob/develop/services/ge_cloud/mercury/handlers/gql/metric.py#L136. I could probably loosen up the endpoint though - I think @donaldheppner was asking about this as well. I'll merge this for now but take a crack first thing tomorrow.

Copy link
Member Author

Choose a reason for hiding this comment

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

This PR is for the backend side: https://github.com/greatexpectationslabs/mercury/pull/2364, I'll need a separate PR for OSS.

@ghost
Copy link

ghost commented Oct 10, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@anthonyburdi anthonyburdi added this pull request to the merge queue Oct 10, 2023
Merged via the queue into develop with commit 16b86e0 Oct 10, 2023
59 checks passed
@anthonyburdi anthonyburdi deleted the m/zel-29/zel-125/blank-instead-of-unknown branch October 10, 2023 23:00
Shinnnyshinshin added a commit that referenced this pull request Oct 12, 2023
…zel-72/test-marker-update-data-assistant-test

* m/zel-63/zel-68/add-jupyter-test-marker: (39 commits)
  [BUGFIX] Fix missing `config_provider` (#8822)
  [MAINTENANCE] Bump gitpython from 3.1.35 to 3.1.37 in /docs_rtd (#8818)
  [BUGFIX] Fix Snowflake `'connection_string'` `TestConnectionError` (#8816)
  [MAINTENANCE] Delete outdated context fixtures (#8809)
  [BUGFIX] Improve datasource crud (#8773)
  [MAINTENANCE] Column Descriptive Metrics: Empty string instead of UNKNOWN if table column type introspection fails (#8819)
  [BUGFIX] Column Descriptive Metrics: Convert table name to lowercase for snowflake (#8817)
  [BUGFIX] Column Descriptive Metrics: Skip finding semantic type info for UNKNOWN columns (#8815)
  [MAINTENANCE] Column Descriptive Metrics: Default to UNKNOWN if type is not found (#8810)
  [MAINTENANCE] Delete legacy `JsonSchemaProfiler` (#8807)
  [DOCS] Update docs to reference new `gx/` dir instead of `great_expectations/` (#8717)
  [MAINTENANCE] Bump urllib3 from 1.26.5 to 1.26.17 in /docs_rtd (#8802)
  [DOCS] Minor Syntax Update (#8806)
  [CONTRIB] New MulticolumnValuesProductEqualToSingleColumn Expectation (#8799)
  [CONTRIB] Updates to MulticolumnValuesSumValuesEqualToSingleColumn (#8798)
  [RELEASE] 0.17.21 (#8805)
  [MAINTENANCE] Remove `ge_cloud_mode` from `Store` (#8747)
  [MAINTENANCE] disallow-untyped-decorators (#8788)
  [DOCS] Add Mermaid plugin to Docusaurus  (#8793)
  [MAINTENANCE] Remove SimpleCheckpoint from public API docs (#8770)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants