Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

test: enable emulator tests for POSTGRESQL dialect#1201

Merged
larkee merged 6 commits intomainfrom
enable-pg-emulator
Sep 16, 2024
Merged

test: enable emulator tests for POSTGRESQL dialect#1201
larkee merged 6 commits intomainfrom
enable-pg-emulator

Conversation

@larkee
Copy link
Copy Markdown
Contributor

@larkee larkee commented Sep 13, 2024

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

@larkee larkee requested a review from a team as a code owner September 13, 2024 00:29
@larkee larkee requested a review from a team 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
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
Copy Markdown
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
Copy Markdown
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
@larkee larkee deleted the enable-pg-emulator branch September 16, 2024 03:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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