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

fix: Fixing test for literals due to change in sqlalchemy core tests - #384

Merged
ankiaga merged 3 commits into
googleapis:mainfrom
ankiaga:tests_fix
Feb 1, 2024
Merged

fix: Fixing test for literals due to change in sqlalchemy core tests#384
ankiaga merged 3 commits into
googleapis:mainfrom
ankiaga:tests_fix

Conversation

@ankiaga

@ankiagaankiaga commented Jan 30, 2024

Copy link
Copy Markdown
Contributor

There are couple of changes in this PR to fix this repo pipeline which is failing from last 3 months:

  1. Spanner doesn't supports inserting 2 rows (a row with NULL value and a row with some value for a given datatype) for a table with empty primary key. SqlAlchemy added tests couple of months back to insert 2 such rows for different datatypes columns so those tests started failing for this repo.
    Fixing to override those tests so as not to insert a row with NULL value but just a single row for each datatype

  2. tests: remove editable install in tests

  3. accommodate NULL at the compiler level for literal_render. Please see sqlalchemy/sqlalchemy@1a23c8d where are copying changes from compiler.py

@product-auto-labelproduct-auto-labelBot added the api: spanner Issues related to the googleapis/python-spanner-sqlalchemy API. label Jan 30, 2024
@ankiagaankiaga added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 30, 2024
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 30, 2024
@ankiagaankiaga added kokoro:force-run Add this label to force Kokoro to re-run the tests. snippet-bot:force-run Force snippet-bot runs its logic labels Jan 30, 2024
@snippet-botsnippet-botBot removed the snippet-bot:force-run Force snippet-bot runs its logic label Jan 30, 2024
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 30, 2024
@ankiaga
ankiaga requested a review from partheaJanuary 31, 2024 05:09
@ankiaga
ankiaga merged commit 62cccc3 into googleapis:mainFeb 1, 2024
@release-pleaserelease-pleaseBot mentioned this pull request Dec 14, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: spannerIssues related to the googleapis/python-spanner-sqlalchemy API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@ankiaga@olavloite@parthea@yoshi-kokoro