Skip to content

Add in-place SPSS schema transformations - #14

Merged
TonisOrmisson merged 2 commits into
mainfrom
codex/python-transform-v0.5
Aug 5, 2026
Merged

Add in-place SPSS schema transformations#14
TonisOrmisson merged 2 commits into
mainfrom
codex/python-transform-v0.5

Conversation

@TonisOrmisson

Copy link
Copy Markdown
Contributor

Adds Python parity for core in-place SPSS schema transformations.

  • Supports bounded STRING and DELETE VARIABLES execution with fail-closed range syntax.
  • Preserves physical bindings and source ordinals across deletion/recreation.
  • Adds PostgreSQL physical-column-slot preflight and service regression coverage.
  • Adds string RECODE width validation and final-variable recreate planning.

Validation: focused transformation regression suite passes locally; PostgreSQL service test is skipped locally when no service URL is configured.

@TonisOrmisson

Copy link
Copy Markdown
Contributor Author

@codex review

@TonisOrmisson

Copy link
Copy Markdown
Contributor Author

@codex review latest commit

@TonisOrmisson
TonisOrmisson marked this pull request as ready for review August 5, 2026 13:23
@TonisOrmisson
TonisOrmisson merged commit 0cff81a into main Aug 5, 2026
28 checks passed

@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: 2c12ba814d

ℹ️ 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".

Comment on lines +322 to +324
later_create = any(
isinstance(later_operation, CreateVariableOperation)
for later_operation in plan.operations[operation_index + 1:]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Count later numeric target creation before final deletes

When a plan starts from a one-variable schema and deletes that variable before creating a numeric replacement, e.g. DELETE VARIABLES only. COMPUTE replacement = 1., the final schema is non-empty and numeric create targets are otherwise supported. This lookahead only treats CreateVariableOperation as a later create, so _bind_delete rejects the delete before a later AssignOperation/RecodeOperation with target_mode="create" can add the replacement. Include those target-creating operations in the lookahead so valid sequential plans are not rejected.

Useful? React with 👍 / 👎.

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