Skip to content

test: enable emulator tests for POSTGRESQL dialect #1201

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

Merged
merged 6 commits into from
Sep 16, 2024
Merged

Conversation

larkee
Copy link
Contributor

@larkee larkee commented Sep 13, 2024

Enables emulator testing in POSTGRESQL dialect for system tests to improve test coverage.

@larkee larkee requested review from a team as code owners September 13, 2024 00:29
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: spanner Issues related to the googleapis/python-spanner API. labels Sep 13, 2024
@@ -525,7 +525,9 @@ def reload(self):
self._encryption_config = response.encryption_config
self._encryption_info = response.encryption_info
self._default_leader = response.default_leader
self._database_dialect = response.database_dialect
# Only update if the data is specific to avoid losing specificity.
if response.database_dialect != DatabaseDialect.DATABASE_DIALECT_UNSPECIFIED:
Copy link
Contributor

Choose a reason for hiding this comment

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

Will there be such a situation where backend returns UNSPECIFIED dialect?
AFAIK, the default dialect is GOOGLE_SQL. Correct me if I am missing something

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 is an issue when working with the emulator. It is returning DATABASE_DIALECT_UNSPECIFIED which is overriding the dialect that this object already had. This shouldn't be an issue in production.

@larkee larkee merged commit 7cb68db into main Sep 16, 2024
14 of 16 checks passed
@larkee larkee deleted the enable-pg-emulator branch September 16, 2024 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/python-spanner API. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy