Skip to content

Fix transaction_primitives on Snowflake and BigQuery - #2420

Merged
joeharris76 merged 7 commits into
developfrom
fix/txn-series-rewrite-sf-bq
Sep 29, 2026
Merged

joeharris76 merged 7 commits into
developfrom
fix/txn-series-rewrite-sf-bq

Conversation

@joeharris76

Copy link
Copy Markdown
Collaborator

Snowflake and BigQuery lack unnest(generate_series), SAVEPOINT, and
SET TRANSACTION ISOLATION LEVEL, so rewrite the catalog integer-series
generator to FLATTEN(ARRAY_GENERATE_RANGE) and UNNEST(GENERATE_ARRAY)
and register documented execution-filter skips. Repair the BigQuery
transaction_with_cte catalog shape (INSERT with a leading WITH clause)
and type bare decimal literals as NUMERIC so inserts into money and
discount columns no longer fail with FLOAT64 errors. Keep script temp
tables unqualified during batch qualification.

Live evidence: txn SF0.01 Snowflake 18 pass plus 5 skips; BigQuery 17
pass plus 5 skips with 1 remaining temp-table failure under
investigation.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-27T02:26:16.016068Z f1aa2d2 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f1aa2d2f1f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@joeharris76
joeharris76 force-pushed the fix/txn-series-rewrite-sf-bq branch 2 times, most recently from dfbb429 to d8eb5cf Compare September 27, 2026 13:35
@joeharris76
joeharris76 added this pull request to the merge queue Sep 27, 2026
@joeharris76
joeharris76 removed this pull request from the merge queue due to a manual request Sep 27, 2026
@joeharris76

Copy link
Copy Markdown
Collaborator Author

Maintainer review: refreshed onto develop (merge de57ca6) to resolve the compat-doc conflicts; the skip-reference and capability-matrix are regenerated from the merged registry. The BigQuery temp-table skip stands per the live API evidence in b0cdac8, and the Snowflake txn rewrite is unchanged. Zero live unresolved threads. CI re-running on the refreshed head; enqueuing after green.

@joeharris76
joeharris76 force-pushed the fix/txn-series-rewrite-sf-bq branch from de57ca6 to 1b19dbf Compare September 28, 2026 12:21
Snowflake and BigQuery lack unnest(generate_series), SAVEPOINT, and
SET TRANSACTION ISOLATION LEVEL, so rewrite the catalog integer-series
generator to FLATTEN(ARRAY_GENERATE_RANGE) and UNNEST(GENERATE_ARRAY)
and register documented execution-filter skips. Repair the BigQuery
transaction_with_cte catalog shape (INSERT with a leading WITH clause)
and type bare decimal literals as NUMERIC so inserts into money and
discount columns no longer fail with FLOAT64 errors. Keep script temp
tables unqualified during batch qualification.

Live evidence: txn SF0.01 Snowflake 18 pass plus 5 skips; BigQuery 17
pass plus 5 skips with 1 remaining temp-table failure under
investigation.
The adapter submits the whole translated script in one connection.query
call where script-scoped temporary tables stay visible, and batch
qualification keeps temp-table references unqualified. Remove the
execution-filter skip so the operation is exercised, and regenerate the
compat docs.
Reverts the unskip: live BigQuery API calls just proved a TEMP TABLE
created inside BEGIN TRANSACTION is invisible to later statements
(Not found: Table ..._script....t_verify_1), and the txn staging
dataset has no TXN_ORDERS table. The skip stands.
@joeharris76
joeharris76 force-pushed the fix/txn-series-rewrite-sf-bq branch from 878791b to 746bafc Compare September 28, 2026 18:04
@joeharris76
joeharris76 added this pull request to the merge queue Sep 28, 2026
@joeharris76
joeharris76 removed this pull request from the merge queue due to the queue being cleared Sep 28, 2026
@joeharris76
joeharris76 added this pull request to the merge queue Sep 28, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 29, 2026
@joeharris76
joeharris76 added this pull request to the merge queue Sep 29, 2026
Merged via the queue into develop with commit bf277dd Sep 29, 2026
44 checks passed
@joeharris76
joeharris76 deleted the fix/txn-series-rewrite-sf-bq branch September 29, 2026 13:06
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.

1 participant