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] Placing BigQuery Imports Under Compatibility Pattern #8214

Merged
merged 11 commits into from Jun 29, 2023

Conversation

Shinnnyshinshin
Copy link
Contributor

@Shinnnyshinshin Shinnnyshinshin commented Jun 28, 2023

  • Places all uses of bigquery under Compatibility pattern.
  • compatibility.sqlalchemy_bigquery is renamed to compatibility.bigquery to be consistent with other backends
  • 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 details, see our Contribution Checklist, Coding style guide, and Documentation style guide.

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!

Comment on lines 24 to 28
try:
from sqlalchemy_bigquery import parse_url
except (ImportError, AttributeError):
parse_url = SQLALCHEMY_BIGQUERY_NOT_IMPORTED

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was the only module that was missing. It was added to compatibility/bigquery.py

@ghost
Copy link

ghost commented Jun 28, 2023

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

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

from great_expectations.execution_engine import (
SqlAlchemyExecutionEngine, # noqa: TCH001
)
from great_expectations.execution_engine.sqlalchemy_dialect import GXSqlDialect
from great_expectations.util import filter_properties_dict
from great_expectations.util import filter_properties_dict, get_sqlalchemy_inspector
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Some additional linting was done here.

@netlify
Copy link

netlify bot commented Jun 28, 2023

Deploy Preview for niobium-lead-7998 canceled.

Name Link
🔨 Latest commit cc3c51a
🔍 Latest deploy log https://app.netlify.com/sites/niobium-lead-7998/deploys/649d41c5e3d7a80008de2120

Copy link
Contributor

@alexsherstinsky alexsherstinsky left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you very much!

@Shinnnyshinshin Shinnnyshinshin enabled auto-merge (squash) June 29, 2023 04:39
@alexsherstinsky alexsherstinsky enabled auto-merge (squash) June 29, 2023 05:20
@alexsherstinsky alexsherstinsky merged commit 7dcdef5 into develop Jun 29, 2023
45 checks passed
@alexsherstinsky alexsherstinsky deleted the m/dx-440/bigquery branch June 29, 2023 09:36
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

3 participants