Skip to content

Allow per-dialect schema files - #569

Merged
prernakakkar-google merged 3 commits into
GoogleCloudPlatform:mainfrom
aseering:feature/dialect-aware-setup-clean-v2
Aug 14, 2026
Merged

Allow per-dialect schema files#569
prernakakkar-google merged 3 commits into
GoogleCloudPlatform:mainfrom
aseering:feature/dialect-aware-setup-clean-v2

Conversation

@aseering

Copy link
Copy Markdown
Collaborator

Spanner has two distinct dialects (PostgreSQL and GoogleSQL): The engine is functionally the same and the dataset is the same, but the schema .sql files need to be different per-database. This change adds automatic (but optional) support for having per-dialect schema files in a dataset.

@google-cla

google-cla Bot commented Aug 12, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@aseering
aseering force-pushed the feature/dialect-aware-setup-clean-v2 branch from a818dc1 to d973d76 Compare August 12, 2026 20:39
@aseering

Copy link
Copy Markdown
Collaborator Author

/gcbrun

- Update _get_setup_values to try dialect subdirectory first
- Update callers in db_manager.py to pass dialect
- Add test_db_manager.py unit tests

TAG=agy-duckie
@aseering
aseering force-pushed the feature/dialect-aware-setup-clean-v2 branch from d973d76 to c8b4e9d Compare August 12, 2026 21:00
@aseering

Copy link
Copy Markdown
Collaborator Author

/gcbrun

@aseering

Copy link
Copy Markdown
Collaborator Author

yep, still not a collaborator. Would someone who is, mind kicking off the tests here?

@prernakakkar-google

Copy link
Copy Markdown
Collaborator

/gcbrun

@prernakakkar-google

Copy link
Copy Markdown
Collaborator

yep, still not a collaborator. Would someone who is, mind kicking off the tests here?

Added you as collaborator. Thanks Adam for contributions.

@prernakakkar-google
prernakakkar-google merged commit ce34685 into GoogleCloudPlatform:main Aug 14, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants