Skip to content

Implement in-place SPSS transformations - #7

Merged
TonisOrmisson merged 2 commits into
mainfrom
codex/spss-transformation-mvp
Jul 31, 2026
Merged

Implement in-place SPSS transformations#7
TonisOrmisson merged 2 commits into
mainfrom
codex/spss-transformation-mvp

Conversation

@TonisOrmisson

Copy link
Copy Markdown
Contributor

Implements the canonical SPSS-like frontend and product-neutral in-place executor for SQLite, PostgreSQL, MySQL, MariaDB, and Dolt. Mutates the existing dataset/table, adds compact audit and CLI/API, rejects non-atomic schema changes before mutation, and creates no undo/copy/snapshot/derived dataset layer.

@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: 0303873d2a

ℹ️ 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 +231 to +234
if old_set is not None:
connection.execute(delete(core.value_label).where(
core.value_label.c.value_label_set_id == old_set
))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Preserve shared value-label sets when replacing labels

When two variables reference the same valid value_label_set, replacing labels for either variable deletes the shared label rows before removing only that variable's association. PostgreSQL/MySQL will reject the later parent deletion because the other association still references it, while SQLite configurations without foreign-key enforcement leave the other variable pointing to an empty or nonexistent set. Detach the current variable first and delete the old set and labels only when no other variables reference it.

Useful? React with 👍 / 👎.

@TonisOrmisson
TonisOrmisson merged commit 74d15b8 into main Jul 31, 2026
28 checks passed
@TonisOrmisson
TonisOrmisson deleted the codex/spss-transformation-mvp branch July 31, 2026 14: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