Skip to content

refactor(common): add multi-network support to PhysicalTable#1968

Open
Theodus wants to merge 1 commit intomainfrom
theodus/derived-dataset-networks
Open

refactor(common): add multi-network support to PhysicalTable#1968
Theodus wants to merge 1 commit intomainfrom
theodus/derived-dataset-networks

Conversation

@Theodus
Copy link
Member

@Theodus Theodus commented Mar 12, 2026

Derived tables will soon depend on raw datasets from multiple networks. Store resolved networks as BTreeSet on PhysicalTable so downstream consumers have accurate network information.

  • Add PhysicalTable.networks: BTreeSet<NetworkId> populated at construction time; raw tables contribute a singleton, derived tables resolve from transitive dependencies
  • Extract collect_raw_datasets shared traversal in datasets_cache and rewrite resolve_dataset_networks and resolve_raw_dataset_from_dependencies on top of it
  • Resolve networks per-table at each from_revision call site, keeping Table::network() as the intrinsic single-network accessor
  • Update find_cross_network_join to compare BTreeSet<NetworkId> per table instead of a single optional network

@Theodus Theodus mentioned this pull request Mar 12, 2026
17 tasks
Derived tables will soon depend on raw datasets from multiple networks.
Store resolved networks as BTreeSet<NetworkId> on PhysicalTable
so downstream consumers have accurate network information.

- Add `PhysicalTable.networks: BTreeSet<NetworkId>` populated at
  construction time; raw tables contribute a singleton, derived
  tables resolve from transitive dependencies
- Extract `collect_raw_datasets` shared traversal in `datasets_cache`
  and rewrite `resolve_dataset_networks` and
  `resolve_raw_dataset_from_dependencies` on top of it
- Resolve networks per-table at each `from_revision` call site,
  keeping `Table::network()` as the intrinsic single-network accessor
- Update `find_cross_network_join` to compare `BTreeSet<NetworkId>`
  per table instead of a single optional network
@Theodus Theodus force-pushed the theodus/derived-dataset-networks branch from 76819ee to 2617d13 Compare March 12, 2026 20:27
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