You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test(operators): several columns, names, mappings and inputs, in every order, role and arrangement (ITL-1236, part 1) - #442
Merge order: #442, then #443, then #444. All three target main; each contains the previous one's commits. After one is merged, main is merged into the next (never a rebase), so its diff shrinks to its own files.
Part 1 of ITL-1236 (operators). Related: ITL-1241, ITL-1242, ITL-1243, ITL-1247, ITL-1249 (defects and a question found here, tested as xfail(strict=True)), ITL-1226 (PR #434, GroupBy, not duplicated here).
Why
GroupBy was tested with one tag and one data column, which hid a result that depended on the order of the input's tag columns (ITL-1226). This PR audits every argument that takes several items and closes the gaps for the operators.
What
Inventory, docs/dev/specs/itl-1236-several-item-test-audit.md: one row per argument or input that takes several items (operators, sources, function pods, binding, ColumnConfig), with the existing test that covers each of (a) several items, (b) several orders, (c) each role, (d) 2+ tags and 2+ data in several arrangements, (e) sync and async, and the ranked gaps.
Shared inputs, tests/test_core/operators/several_items.py: MAIN (tags t1, t2, t3; data d1, d2, d3) and join partners P, Q, R. Each can be built in any tag order, in three table layouts, with plain tags, data-tags or a mix.
Tests, tests/test_core/operators/test_several_items.py, public interface only (op(stream), keys, iter_data, hashes), every case on the sync and the async path:
Every operator gives the same rows, row hashes, system tags, source info, content and pipeline hashes for every arrangement of its input (27 arrangements).
The order of a set argument changes nothing, not even the column order or the operator's identity: select and drop names (tag, data, both), DropNulls names, MapTags / MapData / MapColumns mappings (swaps included), PolarsFilter constraints. PolarsFilter predicates in every order keep the same rows.
Join over 2, 3 and 4 inputs: every permutation gives the same rows, hashes, system-tag names and column order. MergeJoin both ways with three colliding columns. SemiJoin matches on every shared tag.
Names of several roles in one call (plain tag, data-tag, data) follow the documented role rules.
AddTags: the order of its names is the order of the new tags and part of its identity (as documented).
Rule: CLAUDE.md and .zed/rules, "Testing conventions".
Defects found (not fixed here)
Test (xfail(strict=True))
Issue
test_merge_join_of_tied_values_does_not_depend_on_the_order_of_its_inputs: tied values keep their source info in argument order
ITL-1241
test_map_tags_swaps_data_tags_as_it_swaps_plain_tags: a swap of data-tags is refused
ITL-1242
test_merge_join_of_a_nullable_column_holding_nulls: TypeError on a null in a merged column
ITL-1243
test_unary_result_keys_equal_its_row_keys_in_every_arrangement, test_*_async_column_order_equals_sync*: on an input whose table layout differs from its tag order, a result's keys disagree with its rows, and async rows' column order with sync rows' (no hash, no stored table: an operator node stores one order on both orchestrators, tested)
ITL-1249
test_polars_filter_predicate_order_is_not_identity: the order of the predicates is in the identity (rule undecided; the test states the proposal)
ITL-1247
No library code changes; no golden file changes; no changelog fragment (tests and developer docs only, per changelog.d/README.md).
Follow-up PRs on ITL-1236: sources, function pods and binding.
Posted by a Claude Code agent on behalf of @eywalker.
…y order, role and arrangement (ITL-1236)
A shared family of inputs with three tags and three data columns, in several tag
orders, table layouts and role settings (plain, data-tags, mixed), and tests of every
operator over it, sync and async: the result does not depend on the arrangement of the
input; the order of a set argument (names, rename mappings, constraints) changes
nothing; Join over 2, 3 and 4 inputs and MergeJoin are commutative; SemiJoin matches
on every shared tag. Defects found are xfail(strict=True): ITL-1241 (MergeJoin ties),
ITL-1242 (MapTags swap of data-tags), MergeJoin null crash (issue pending).
The inventory of every several-item argument, with the evidence and the ranked gaps,
is docs/dev/specs/itl-1236-several-item-test-audit.md. CLAUDE.md and .zed/rules state
the rule in "Testing conventions".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Limit details: You’ve used the included review currently available. Your 115 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The join tests leave coverage gaps: async results lack sync-equivalence assertions, restricted-input behavior is tested only synchronously, and MergeJoin omits reordered and interleaved column layouts.
This first part of ITL-1236 expands operator regression coverage for multiple columns, argument orders, column roles and input layouts, complementing the GroupBy work in PR #434. It changes tests and developer guidance only, not library code or golden hashes.
Changes:
Adds reusable multi-column inputs and sync/async operator test matrices.
Records coverage gaps and known defects, with strict expected-failure tests.
Adds matching several-item testing guidance to both agent instruction files.
…se; MergeJoin and the restricted SemiJoin in every layout (ITL-1236)
Addresses the Copilot review of #442.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The new tests can miss incorrect predicate-combination semantics and sync/async column-order mismatches because they lack expected-row and order-sensitive assertions.
This only checks agreement between permutations, so an implementation that combines multiple predicates with OR instead of AND still passes: all six permutations would return every MAIN row, whereas the intended conjunction keeps only the row with d1 == 50. The other new predicate cases likewise compare arrangements or sync/async results without an expected-row assertion. Please assert the expected surviving row here so the several-predicate coverage also detects incorrect combination semantics.
…arrangement; defect 7 as xfail (ITL-1236)
Addresses the second Copilot review of #442: sync and async rows are compared with
their column order, system-tag order and Arrow schemas within each arrangement, and
a result's keys with its rows' keys. Both fail on inputs whose table layout differs
from the tag order (reported, issue pending); those combinations are
xfail(strict=True), the others are asserted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The tests leave order independence during actual tag selection unverified, while broad xfail sweeps can mask regressions in previously working arrangements.
This case selects all three tags, so every permutation takes the passthrough branch in SelectTagColumns.unary_static_process, and the async path has no tags to drop. The partial selections elsewhere use only one argument order, leaving order independence during actual selection untested. Select two of the three tags here so the permutation matrix exercises selection on both paths and in every role.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Human assessment is needed because mixed-role data-tag handling lacks test coverage across argument orders and input arrangements on both synchronous and asynchronous paths.
… bound sources, in every order and role (ITL-1236, part 2) (#443)
* test(operators): several columns, names, mappings and inputs, in every order, role and arrangement (ITL-1236)
A shared family of inputs with three tags and three data columns, in several tag
orders, table layouts and role settings (plain, data-tags, mixed), and tests of every
operator over it, sync and async: the result does not depend on the arrangement of the
input; the order of a set argument (names, rename mappings, constraints) changes
nothing; Join over 2, 3 and 4 inputs and MergeJoin are commutative; SemiJoin matches
on every shared tag. Defects found are xfail(strict=True): ITL-1241 (MergeJoin ties),
ITL-1242 (MapTags swap of data-tags), MergeJoin null crash (issue pending).
The inventory of every several-item argument, with the evidence and the ranked gaps,
is docs/dev/specs/itl-1236-several-item-test-audit.md. CLAUDE.md and .zed/rules state
the rule in "Testing conventions".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(sources, function_pod, pipeline): several tags, keys, inputs and bound sources, in every order and role (ITL-1236)
Sources: tag order and layout enter no hash; tag_only_columns order changes nothing;
record ids follow the key order (content hash moves, pipeline hash and source id do
not); tags_as_data order is the new columns' order only; CachedSource reads back every
role and arrangement. Function pods: every order of three inputs gives the same rows,
hashes and columns, and a job over another order finds every result stored, sync and
async; parameters match by name; a function reads several data-tags in any
arrangement. Bind: two sources in one call, one refused leaves both unbound; a source in
another arrangement binds without moving anything.
Defects found are xfail(strict=True) with the issue pending: the fall-through tags'
order in a function pod's identity (defect 6), swapped output_keys keep the uri
(defect 4), a mixed-role source in another order breaks the bound node's table
(defect 5).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(operators): async rows equal sync rows in every several-input case; MergeJoin and the restricted SemiJoin in every layout (ITL-1236)
Addresses the Copilot review of #442.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(operators): issue ids for the defects found (ITL-1243, ITL-1247); predicates in every order and role, sync and async (ITL-1236)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(operators): type the results helper by Mapping (ITL-1236)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(operators): column order of sync rows, async rows and keys, per arrangement; defect 7 as xfail (ITL-1236)
Addresses the second Copilot review of #442: sync and async rows are compared with
their column order, system-tag order and Arrow schemas within each arrangement, and
a result's keys with its rows' keys. Both fail on inputs whose table layout differs
from the tag order (reported, issue pending); those combinations are
xfail(strict=True), the others are asserted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(sources, pipeline): compare key orders with each other; check both bound sources (ITL-1236)
Addresses the Copilot review of #443.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(operators): ITL-1249 for the column order xfails; an operator node stores one column order on both orchestrators (ITL-1236)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(operators): one column-order test per arrangement, xfail only where ITL-1249 reproduces (ITL-1236)
Addresses the third Copilot review of #442.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(function_pod, sources, pipeline): weighted outputs, async arrangements, cache-only readback, bind on both orchestrators (ITL-1236)
Addresses the second Copilot review of #443.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(sources): compare whole record ids with canonical JSON built from the input values (ITL-1236)
The record-id test checked only the JSON key names. It now compares each
source's record ids, for every key order, with the canonical JSON of each
row's key values in that order, built in the test from the input columns,
and pins the format with two literals (Copilot, #443).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Edgar Y. Walker <>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…alued data-tags, stream methods and column groups (ITL-1236, part 3) (#444)
* test(operators): several columns, names, mappings and inputs, in every order, role and arrangement (ITL-1236)
A shared family of inputs with three tags and three data columns, in several tag
orders, table layouts and role settings (plain, data-tags, mixed), and tests of every
operator over it, sync and async: the result does not depend on the arrangement of the
input; the order of a set argument (names, rename mappings, constraints) changes
nothing; Join over 2, 3 and 4 inputs and MergeJoin are commutative; SemiJoin matches
on every shared tag. Defects found are xfail(strict=True): ITL-1241 (MergeJoin ties),
ITL-1242 (MapTags swap of data-tags), MergeJoin null crash (issue pending).
The inventory of every several-item argument, with the evidence and the ranked gaps,
is docs/dev/specs/itl-1236-several-item-test-audit.md. CLAUDE.md and .zed/rules state
the rule in "Testing conventions".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(sources, function_pod, pipeline): several tags, keys, inputs and bound sources, in every order and role (ITL-1236)
Sources: tag order and layout enter no hash; tag_only_columns order changes nothing;
record ids follow the key order (content hash moves, pipeline hash and source id do
not); tags_as_data order is the new columns' order only; CachedSource reads back every
role and arrangement. Function pods: every order of three inputs gives the same rows,
hashes and columns, and a job over another order finds every result stored, sync and
async; parameters match by name; a function reads several data-tags in any
arrangement. Bind: two sources in one call, one refused leaves both unbound; a source in
another arrangement binds without moving anything.
Defects found are xfail(strict=True) with the issue pending: the fall-through tags'
order in a function pod's identity (defect 6), swapped output_keys keep the uri
(defect 4), a mixed-role source in another order breaks the bound node's table
(defect 5).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(operators): async rows equal sync rows in every several-input case; MergeJoin and the restricted SemiJoin in every layout (ITL-1236)
Addresses the Copilot review of #442.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(operators): issue ids for the defects found (ITL-1243, ITL-1247); predicates in every order and role, sync and async (ITL-1236)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(operators): type the results helper by Mapping (ITL-1236)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(data_tags, streams, sources): several nullable data-tags, list-valued data-tags, stream methods and column groups (ITL-1236)
DropNulls naming plain tags, data-tags holding nulls and data in every order; Index
with out= over a list-valued data-tag; a DictSource schema in another field order;
every stream method given several items equals its operator (polars_filter keywords
win over constraint_map); every combination of ColumnConfig groups keeps the all_info
column order. Sync and async compared where an async path exists. All as documented.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(operators): column order of sync rows, async rows and keys, per arrangement; defect 7 as xfail (ITL-1236)
Addresses the second Copilot review of #442: sync and async rows are compared with
their column order, system-tag order and Arrow schemas within each arrangement, and
a result's keys with its rows' keys. Both fail on inputs whose table layout differs
from the tag order (reported, issue pending); those combinations are
xfail(strict=True), the others are asserted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(sources, pipeline): compare key orders with each other; check both bound sources (ITL-1236)
Addresses the Copilot review of #443.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(operators): ITL-1249 for the column order xfails; an operator node stores one column order on both orchestrators (ITL-1236)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(operators): one column-order test per arrangement, xfail only where ITL-1249 reproduces (ITL-1236)
Addresses the third Copilot review of #442.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(function_pod, sources, pipeline): weighted outputs, async arrangements, cache-only readback, bind on both orchestrators (ITL-1236)
Addresses the second Copilot review of #443.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(data_tags, streams): narrowing checked against the computed schema; Index keeps the data-tag's lists; column groups checked against their own columns (ITL-1236)
Addresses the Copilot review of #444.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(sources): compare whole record ids with canonical JSON built from the input values (ITL-1236)
The record-id test checked only the JSON key names. It now compares each
source's record ids, for every key order, with the canonical JSON of each
row's key values in that order, built in the test from the input columns,
and pins the format with two literals (Copilot, #443).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Edgar Y. Walker <>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…tputs (ITL-1244) (#445)
* test(operators): several columns, names, mappings and inputs, in every order, role and arrangement (ITL-1236)
A shared family of inputs with three tags and three data columns, in several tag
orders, table layouts and role settings (plain, data-tags, mixed), and tests of every
operator over it, sync and async: the result does not depend on the arrangement of the
input; the order of a set argument (names, rename mappings, constraints) changes
nothing; Join over 2, 3 and 4 inputs and MergeJoin are commutative; SemiJoin matches
on every shared tag. Defects found are xfail(strict=True): ITL-1241 (MergeJoin ties),
ITL-1242 (MapTags swap of data-tags), MergeJoin null crash (issue pending).
The inventory of every several-item argument, with the evidence and the ranked gaps,
is docs/dev/specs/itl-1236-several-item-test-audit.md. CLAUDE.md and .zed/rules state
the rule in "Testing conventions".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(sources, function_pod, pipeline): several tags, keys, inputs and bound sources, in every order and role (ITL-1236)
Sources: tag order and layout enter no hash; tag_only_columns order changes nothing;
record ids follow the key order (content hash moves, pipeline hash and source id do
not); tags_as_data order is the new columns' order only; CachedSource reads back every
role and arrangement. Function pods: every order of three inputs gives the same rows,
hashes and columns, and a job over another order finds every result stored, sync and
async; parameters match by name; a function reads several data-tags in any
arrangement. Bind: two sources in one call, one refused leaves both unbound; a source in
another arrangement binds without moving anything.
Defects found are xfail(strict=True) with the issue pending: the fall-through tags'
order in a function pod's identity (defect 6), swapped output_keys keep the uri
(defect 4), a mixed-role source in another order breaks the bound node's table
(defect 5).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(operators): async rows equal sync rows in every several-input case; MergeJoin and the restricted SemiJoin in every layout (ITL-1236)
Addresses the Copilot review of #442.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(operators): issue ids for the defects found (ITL-1243, ITL-1247); predicates in every order and role, sync and async (ITL-1236)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(operators): type the results helper by Mapping (ITL-1236)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(data_tags, streams, sources): several nullable data-tags, list-valued data-tags, stream methods and column groups (ITL-1236)
DropNulls naming plain tags, data-tags holding nulls and data in every order; Index
with out= over a list-valued data-tag; a DictSource schema in another field order;
every stream method given several items equals its operator (polars_filter keywords
win over constraint_map); every combination of ColumnConfig groups keeps the all_info
column order. Sync and async compared where an async path exists. All as documented.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(operators): column order of sync rows, async rows and keys, per arrangement; defect 7 as xfail (ITL-1236)
Addresses the second Copilot review of #442: sync and async rows are compared with
their column order, system-tag order and Arrow schemas within each arrangement, and
a result's keys with its rows' keys. Both fail on inputs whose table layout differs
from the tag order (reported, issue pending); those combinations are
xfail(strict=True), the others are asserted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(sources, pipeline): compare key orders with each other; check both bound sources (ITL-1236)
Addresses the Copilot review of #443.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(operators): ITL-1249 for the column order xfails; an operator node stores one column order on both orchestrators (ITL-1236)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(operators): one column-order test per arrangement, xfail only where ITL-1249 reproduces (ITL-1236)
Addresses the third Copilot review of #442.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(function_pod, sources, pipeline): weighted outputs, async arrangements, cache-only readback, bind on both orchestrators (ITL-1236)
Addresses the second Copilot review of #443.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(data_tags, streams): narrowing checked against the computed schema; Index keeps the data-tag's lists; column groups checked against their own columns (ITL-1236)
Addresses the Copilot review of #444.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(function_pod): pin the output schema as a set of named, typed outputs (ITL-1244)
The developer decided (November 17, 2026) that a function's outputs are a
set of named, typed values: the uri holds the order-free output schema hash,
as before. No code changes. The audit's strict xfail for ITL-1244 becomes
tests that pin the decision:
- a swap of differently typed output keys gives another uri, content hash,
pipeline hash and stored tables; a swap of same-typed keys gives the same
uri (two and three keys, every order);
- input parameters (names and order) are in no part of the uri;
- @function_pod, FunctionPod.from_fn and PythonDataFunction give one uri;
to_config/from_config and a saved and loaded job keep the declared order;
- jobs with differently typed orders on one database (in-memory and Delta,
sync and async, plain tags and data-tags) store their own rows;
- strict xfails for ITL-1253 (a cache hit with other function variation
data is served silently) and ITL-1254 (a dict returned for a tuple
annotation is iterated by its keys).
Docs (identity, function pods, tutorial part 6), CLAUDE.md and .zed/rules
state the rule; design issue ITL-1244-OK1 records the decision.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(function_pod): the ITL-1253 xfail names ITL-1256 and expects only its assertion to fail (ITL-1244)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(sources): compare whole record ids with canonical JSON built from the input values (ITL-1236)
The record-id test checked only the JSON key names. It now compares each
source's record ids, for every key order, with the canonical JSON of each
row's key values in that order, built in the test from the input columns,
and pins the format with two literals (Copilot, #443).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test: several-items arrangements for the data-tag, source, stream-method and output-key tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(function_pod): ITL-1246 strict xfail scoped to the arrangement test's data-tag cases
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs: a same-typed swap of output keys needs a MAJOR version bump
The uri holds only the function's major version, so a minor bump (v0.0
to v0.1) keeps the uri and, while a cache hit is not checked (ITL-1253),
serves the earlier order's stored values. CLAUDE.md, .zed/rules, the
function pods page, the ITL-1244 design issue entry, the several-items
audit spec and the test module now say a major bump is required. A test
pins that a minor bump keeps the swapped order's uri and a major bump
changes it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(tests): AddTags' name order is neither the new tags' order nor identity (ITL-1269)
The several-items operator test module docstring and the several-item
audit spec still said the order of AddTags's names is part of its
identity; PR 457 made it free.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs: a major bump is needed only when an output name receives another value (ITL-1244)
Swapping same-typed output keys together with the returned values gives
every name the value it had: one uri, and the stored rows stay right. The
rule now says so in CLAUDE.md, .zed/rules, the identity and function pod
pages, the design issue and the audit spec; tests pin it in memory and in
a job, sync and async.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Edgar Y. Walker <>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merge order: #442, then #443, then #444. All three target
main; each contains the previous one's commits. After one is merged,mainis merged into the next (never a rebase), so its diff shrinks to its own files.Part 1 of ITL-1236 (operators). Related: ITL-1241, ITL-1242, ITL-1243, ITL-1247, ITL-1249 (defects and a question found here, tested as
xfail(strict=True)), ITL-1226 (PR #434,GroupBy, not duplicated here).Why
GroupBywas tested with one tag and one data column, which hid a result that depended on the order of the input's tag columns (ITL-1226). This PR audits every argument that takes several items and closes the gaps for the operators.What
docs/dev/specs/itl-1236-several-item-test-audit.md: one row per argument or input that takes several items (operators, sources, function pods, binding,ColumnConfig), with the existing test that covers each of (a) several items, (b) several orders, (c) each role, (d) 2+ tags and 2+ data in several arrangements, (e) sync and async, and the ranked gaps.tests/test_core/operators/several_items.py:MAIN(tagst1,t2,t3; datad1,d2,d3) and join partnersP,Q,R. Each can be built in any tag order, in three table layouts, with plain tags, data-tags or a mix.tests/test_core/operators/test_several_items.py, public interface only (op(stream),keys,iter_data, hashes), every case on the sync and the async path:DropNullsnames,MapTags/MapData/MapColumnsmappings (swaps included),PolarsFilterconstraints.PolarsFilterpredicates in every order keep the same rows.Joinover 2, 3 and 4 inputs: every permutation gives the same rows, hashes, system-tag names and column order.MergeJoinboth ways with three colliding columns.SemiJoinmatches on every shared tag.AddTags: the order of its names is the order of the new tags and part of its identity (as documented).CLAUDE.mdand.zed/rules, "Testing conventions".Defects found (not fixed here)
xfail(strict=True))test_merge_join_of_tied_values_does_not_depend_on_the_order_of_its_inputs: tied values keep their source info in argument ordertest_map_tags_swaps_data_tags_as_it_swaps_plain_tags: a swap of data-tags is refusedtest_merge_join_of_a_nullable_column_holding_nulls:TypeErroron a null in a merged columntest_unary_result_keys_equal_its_row_keys_in_every_arrangement,test_*_async_column_order_equals_sync*: on an input whose table layout differs from its tag order, a result's keys disagree with its rows, and async rows' column order with sync rows' (no hash, no stored table: an operator node stores one order on both orchestrators, tested)test_polars_filter_predicate_order_is_not_identity: the order of the predicates is in the identity (rule undecided; the test states the proposal)No library code changes; no golden file changes; no changelog fragment (tests and developer docs only, per
changelog.d/README.md).Follow-up PRs on ITL-1236: sources, function pods and binding.
Posted by a Claude Code agent on behalf of @eywalker.
🤖 Generated with Claude Code