Repository navigation
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
|
…rrow' into eywalker/itl-1543-part-b
# Conflicts: # .zed/rules # CLAUDE.md # changelog.d/ITL-1543.md # docs/dev/design_issues/ITL-1543-AS2.md # src/orcapod/core/operators/join.py # src/orcapod/core/sources/cached_source.py # src/orcapod/core/sources/data_frame_source.py # src/orcapod/core/sources/derived_source.py # src/orcapod/core/sources/polling_source.py # src/orcapod/core/sources/stream_builder.py # src/orcapod/utils/arrow_utils.py # tests/test_core/sources/test_source_arrow_validation.py
Contributor
Author
|
Closing without merging, by the developer's decision. Changes that landed on main on purpose cover or withdraw this PR's aim:
ITL-1543 stays open for anything of its aim that is still missing. Posted by a Claude Code agent on behalf of @eywalker. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Mentions ITL-1543
Mentions ITL-1557
Mentions ITL-1561
Rows carry their stream's declared system-tag Arrow types, flags, and field metadata. Copies, standalone async Join, typed empty tables, and record-batch reads carry those fields too. The raw nullable Join case left open in #605 is covered by a regression that compares sync and async rows in every order of three tied inputs.
Before and after
as_source()The source-info declaration remains in
arrow_utils.add_source_info. It still declares generated source token columns non-nullable, and the row token API still uses nullable fields. The cache read regression verifies that an older stored token column retains its original flag on readback. ITL-1557 tracks the token decision. The existing PR 494 guard stays for the PR 601 follow-up.Review regressions
test_refuses_field_metadata_on_custom_system_tagscovers ordinary and extension keys for all nine constructors that acceptsystem_tag_columns, plus a SpiralDB tag copied withtags_as_dataand then nominated. A metadata-free source matches all three row IDs at969ed093.test_standalone_async_join_rows_keep_declared_system_tag_fieldscompares the predicted types and flags, empty and populated Arrow schemas, and sync and async rows across all orders of three tied inputs with matching or different metadata. The sorted source and record fields carry no operand metadata.test_entry_id_explains_how_to_replace_a_raw_null_system_tagcovers top-level and nested raw Null.The job and transport regressions now assert the declared field for narrow and nullable raw system tags. A former source fixture using an integer custom tag now asserts the existing construction error.
The source refusal is a stopgap pending ITL-1561, which will re-evaluate which Arrow field metadata a custom system tag may carry. Remove the metadata before building the source. A raw
ArrowTableStreamstill preserves its declared fields and passes them to rows.Rechecking this revision against the previous PR head with the same main changes applied produced identical results for 238 ordinary cases, including source and stream fixtures, standalone operators, cached function pods and physical source caching. The tied Join matched standalone in both modes, and 60 sync and async saved-job comparisons matched through
as_source(). Its stored schemas (including field metadata), values and record hashes matched apart from the recording timestamp.Second review regressions
test_reopened_cache_refuses_legacy_system_tag_metadatachecks table, sync row, async row, and stored-record reads after reopening a persisted cache without its original source. The error names the field and asks for a rebuild.test_bound_proxy_refuses_delegated_system_tag_metadatachecks the same source rule for a live delegate's table, preview, and both row paths.test_dataframe_source_validates_arrow_inputs_before_polarscovers Table and RecordBatch inputs, both with and without a separate schema.test_tied_join_keeps_custom_system_tags_with_their_operandcompares prediction, table, and both row paths across all six orders and two layouts. Both execution paths now call the same sorter.test_stream_and_rows_agree_on_tag_and_primary_data_fields[bound_source_proxy]checks the public bound proxy through table, sync row, and async row access.The common source validator checks system tags on cached, delegated, and directly wrapped tables. The plain derived route discards its origin's system tags, the tag-copy form rebuilds provenance, and the unbound proxy exposes no rows. Raw Arrow streams retain their declared fields.
The second-round before-and-after comparison matched all 240 ordinary cases and 60 saved and loaded jobs, including
as_source(). The tied Join's stored schemas, record hashes, paths, and values matched apart from the recording time. All 2,504 goldens matched.Third review regression
Arrow readers and C exporters could lose nominated system-tag metadata before validation.
test_dataframe_source_validates_arrow_inputs_before_polarscovers Tables, RecordBatches, RecordBatchReaders, Arrow C stream exporters, Arrow C array exporters, and exporters supporting both protocols. It tests populated and empty inputs with and without a declared schema, and checks that exporters are called once.DataFrameSource materializes Arrow input once, validates the nominated fields, and passes the checked table to Polars. It preserves Polars' array-first choice for dual exporters and its chunk-handling behavior. Metadata-free inputs in the before-and-after comparison kept their Arrow fields, values, and source, pipeline, entry, instance, and record IDs.
Merge verification
Part A landed in #605. The merge from
mainretains exactly the Part B patch. After accounting for main commits that the original branch had already merged and normalizing diff headers, the old and new patches match across all 29 files.Posted by a Codex agent on behalf of @eywalker.