Skip to content

Use consistent ordering in T2Compute.ingest and StateT2Dependency.link_override#333

Merged
jvansanten merged 5 commits intomasterfrom
link_override_ordering
Feb 1, 2026
Merged

Use consistent ordering in T2Compute.ingest and StateT2Dependency.link_override#333
jvansanten merged 5 commits intomasterfrom
link_override_ordering

Conversation

@jvansanten
Copy link
Contributor

@jvansanten jvansanten commented Jan 30, 2026

The sort applied by T2Compute.ingest to select targets for point T2s different from the one applied in StateT2Dependency.link_override if all the following conditions are met:

  • DPSelection.sort refers to a field whose values in the datapoint set are not unique
  • Datapoint ids are are not monotonically increasing in the list passed to ChainedIngestionHandler.ingest()
  • T1Compiler.sort==true

This causes missing point t2 dependencies of state t2s. This PR adds an integration test that demonstrates the problem, and addresses it by presenting datapoints to filter/sort/select in ingest_point_t2s() in the same order they are stored in the T1 document.

@jvansanten jvansanten force-pushed the link_override_ordering branch from e6d21b0 to 45a6615 Compare January 30, 2026 20:02
@jvansanten jvansanten force-pushed the link_override_ordering branch from 45a6615 to 5e96689 Compare February 1, 2026 08:56
@jvansanten jvansanten merged commit 3f72ac5 into master Feb 1, 2026
5 checks passed
@jvansanten jvansanten deleted the link_override_ordering branch February 1, 2026 09:44
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