Skip to content

refactor(common): replace CatalogTable with tuple type#1908

Merged
LNSD merged 1 commit intomainfrom
lnsd/refactor-common-catalog-physical
Mar 5, 2026
Merged

refactor(common): replace CatalogTable with tuple type#1908
LNSD merged 1 commit intomainfrom
lnsd/refactor-common-catalog-physical

Conversation

@LNSD
Copy link
Contributor

@LNSD LNSD commented Mar 4, 2026

Remove the thin wrapper struct in favor of raw tuples, reducing indirection for a type with no logic beyond two trivial accessors.

  • Delete CatalogTable struct and its new, physical_table, sql_schema_name methods
  • Change Catalog::entries field and all related signatures to Vec<(Arc<PhysicalTable>, Arc<str>)>
  • Update CatalogSnapshot::from_catalog and catalog_entries to the tuple type
  • Replace all CatalogTable::new(...) construction sites with tuple literals

@LNSD LNSD requested review from Theodus and shiyasmohd March 4, 2026 16:27
@LNSD LNSD self-assigned this Mar 4, 2026
@LNSD LNSD force-pushed the lnsd/refactor-common-catalog-physical branch from 498e962 to d68d45c Compare March 4, 2026 16:31
…str>) tuples

Remove the thin wrapper struct in favor of raw tuples, reducing indirection for a type with no logic beyond two trivial accessors.

- Delete `CatalogTable` struct and its `new`, `physical_table`, `sql_schema_name` methods
- Change `Catalog::entries` field and all related signatures to `Vec<(Arc<PhysicalTable>, Arc<str>)>`
- Update `CatalogSnapshot::from_catalog` and `catalog_entries` to the tuple type
- Replace all `CatalogTable::new(...)` construction sites with tuple literals
- Use destructuring at all access sites instead of named accessor calls

Signed-off-by: Lorenzo Delgado <lorenzo@edgeandnode.com>
@LNSD LNSD force-pushed the lnsd/refactor-common-catalog-physical branch from d68d45c to 720316c Compare March 4, 2026 16:41
Copy link
Member

@Theodus Theodus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@LNSD LNSD merged commit 9f8e733 into main Mar 5, 2026
8 checks passed
@LNSD LNSD deleted the lnsd/refactor-common-catalog-physical branch March 5, 2026 09:50
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