Skip to content

fix(python-sdk): normalize async PITR wildcard scopes - #30944

Merged
mergify[bot] merged 2 commits into
matrixorigin:mainfrom
MatrixAdventurer:fix/30943-async-pitr-wildcards
Oct 23, 2026
Merged

mergify[bot] merged 2 commits into
matrixorigin:mainfrom
MatrixAdventurer:fix/30943-async-pitr-wildcards

Conversation

@MatrixAdventurer

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • BUG

Which issue(s) this PR fixes:

Fixes #30943

What this PR does / why we need it:

SHOW PITR uses * for scope columns that do not apply. The synchronous Python SDK parser converts those sentinels to None, matching the public Optional[str] model, but AsyncPitrManager returned the raw * values.

This change applies the same normalization in the async shared row parser. The regression exercises the public async get() path and pins the synchronous behavior used as the contract reference.

Reproduction proof

  • Before the production fix, the new async assertion fails with AssertionError: '*' is not None.
  • After the fix, the focused PITR suite and full offline SDK suite pass.

Validation

  • python -m pytest -q clients/python/tests/offline/test_pitr.py — passed (28 tests).
  • python -m pytest -q clients/python/tests/offline — passed (1305 tests; two existing SQLAlchemy/sqlite deprecation warnings).
  • python -m flake8 ... --select=E9,F63,F7,F82 — passed for both changed files.
  • python -m compileall -q ... — passed.
  • git diff --check — passed.
  • Independent review — APPROVE, no findings.

Online SDK tests and the remote multi-version CI matrix are not claimed; CI will provide the repository-supported matrix.

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@mergify mergify Bot added the kind/bug Something isn't working label Oct 23, 2026
@XuPeng-SH

XuPeng-SH commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

mo-bot review · mo-bot-local · done

Commit: 7bb85c72b6b433b543ce167c263aa8efd7ea2f4b

Review completed. Read the assessment.

@XuPeng-SH XuPeng-SH left a comment

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.

mo-bot review · mo-bot-local · review

Commit: 7bb85c72b6b433b543ce167c263aa8efd7ea2f4b

Assessment: approve

Reviewed the complete two-file delta and affected callers. Normalizing wildcard scopes in the existing async row parser restores synchronous API parity across get/list and create/alter results. The design adds no duplicate execution path, extra I/O or material performance cost. No actionable findings remain.

Model: gpt-6-astra / xhigh

Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1

Validation:

  • Verified the frozen HEAD and clean source; independently checked parser parity, client/session callers, SHOW PITR semantics and the added public-get assertions.

  • Reused six successful exact-head Python SDK offline CI variants recorded in evidence.json and checked their workflow scope.

  • git diff --check and the static evidence audit passed. Both check-run receipts match the assessed HEAD and exit code 0; retained logs are attempt-1/diff-check.log and attempt-1/audit.log.

Limitations:

  • No local Python suite rerun; raw CI and author test logs were unavailable. Online SDK tests were skipped, an accepted limitation for this parser-only correction.

  • Linked issue #30943's original body was unavailable; the concrete wildcard-normalization contract was reviewed from the supplied PR evidence.

@mergify mergify Bot added the queued label Oct 23, 2026
@mergify

mergify Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-10-23 05:30 UTC · Rule: main · triggered by rule Automatic queue on approval for main
  • ✅ Checks passed · in-place
  • ✅ Merged — 2026-10-23 09:44 UTC · at 564d02384605c245586a61bf76db58b3d9106976 · squash

This pull request spent 4 hours 14 minutes 21 seconds in the queue, including 45 seconds running CI.

Required conditions to merge

@mergify
mergify Bot merged commit 564d023 into matrixorigin:main Oct 23, 2026
28 of 29 checks passed
@mergify mergify Bot removed the queued label Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python SDK async PITR exposes wildcard markers instead of None

2 participants