Skip to content

chore(deps): bump xorq>=0.3.25 and adapt tests to API changes#267

Merged
hussainsultan merged 4 commits into
boringdata:mainfrom
ghoersti:george/update/xorq-0.3.25
May 20, 2026
Merged

chore(deps): bump xorq>=0.3.25 and adapt tests to API changes#267
hussainsultan merged 4 commits into
boringdata:mainfrom
ghoersti:george/update/xorq-0.3.25

Conversation

@ghoersti
Copy link
Copy Markdown
Contributor

Summary

Bumps xorq from >=0.3.19 to >=0.3.25 and adapts BSL to API changes introduced in that range.

Upstream changes between 0.3.19 and 0.3.25:

  • get_rebuild_dispatch now returns a callable taking (rebuild_subexpr, remap, to_catalog) instead of just (rebuild_subexpr).
  • Tag-op classes are frozen with parent: Relation (non-null), so parent=None is no longer constructible.
  • xorq.api.read_parquet was removed; callers use deferred_read_parquet.
  • xorq.vendor.ibis literal inference now rejects scalars built via the foreign top-level ibis package inside a vendored expression.
  • Replayer._rewrite_noop_commits invokes git rebase --onto, which needs a configured git identity.

Changes

  • pyproject.toml / uv.lock: bump xorq to >=0.3.25 (and xorq-datafusion to 0.2.7 transitively).
  • serialization/tag_handler.reemit: drop the if tag_node.parent is None guard now that xorq's op definition makes it structurally impossible; update docstring.
  • tests/test_xorq_backends.py: xo.read_parquetxo.deferred_read_parquet.
  • tests/test_xorq_rebuild.py:
    • Pass (rebuild_subexpr, None, None) to the dispatch callable.
    • Replace ibis.literal(1) inside a reemit callback with a raw Python scalar so mutate infers in the parent's flavor.
    • Add an autouse fixture that sets GIT_*_NAME/EMAIL env vars so the catalog-replay rebase works on CI runners with no global git identity.
    • Drop test_reemit_raises_on_missing_parent (no longer reachable given frozen ops).

Test plan

  • CI passes

🤖 Generated with Claude Code

ghoersti and others added 4 commits May 19, 2026 15:48
Between the previously-pinned 0.3.19 and the new 0.3.25, xorq:
  - changed the dispatch returned by ``get_rebuild_dispatch`` to take
    ``(rebuild_subexpr, remap, to_catalog)`` instead of just
    ``(rebuild_subexpr)``.
  - made tag-op classes frozen with ``parent: Relation``, so
    ``parent=None`` is no longer constructible (and ``.parent`` cannot
    be mutated after construction).
  - removed ``xorq.api.read_parquet``; callers use
    ``deferred_read_parquet``.
  - tightened ``xorq.vendor.ibis`` literal inference: scalars
    constructed via the foreign top-level ``ibis`` package are
    rejected inside a vendored expression.
  - added a ``Replayer._rewrite_noop_commits`` step that invokes
    ``git rebase --onto``, which needs a configured git identity.

Adaptations:
  - test_xorq_backends: rename xo.read_parquet -> xo.deferred_read_parquet.
  - test_xorq_rebuild: pass ``(rebuild_subexpr, None, None)`` to the
    dispatch callable, and replace ``ibis.literal(1)`` inside a reemit
    callback with a raw Python scalar so ``mutate`` infers in the
    parent's flavor.
  - test_xorq_rebuild: add an autouse fixture that sets
    ``GIT_*_NAME/EMAIL`` env vars so the catalog-replay rebase works
    on CI runners with no global git identity.
  - serialization/tag_handler.reemit: drop the ``if tag_node.parent is
    None`` guard. xorq now declares ``parent`` as a non-null
    ``Relation``, so the precondition is structurally impossible. Drop
    the matching ``test_reemit_raises_on_missing_parent`` test (it
    could only fire by mutating a real tag node into an invalid shape,
    which xorq's immutability now rejects).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
BSL only ever emits HashingTag (both to_tagged and reemit itself use
``hashing_tag``), so the previous "(HashingTag/Tag)" was misleading.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Same xorq 0.3.20+ API rename already applied in tests; missed this
example call site in the original commit. ``xo.read_parquet`` now falls
through to ``ibis.load_backend("read_parquet")`` which raises
AttributeError, breaking ``make examples``.
@hussainsultan hussainsultan merged commit 0222b3a into boringdata:main May 20, 2026
3 checks passed
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.

2 participants