Skip to content

refactor(memory): derive catalog configuration from properties - #3101

Draft
blackmwk wants to merge 4 commits into
apache:mainfrom
blackmwk:ir-3095-memory-properties
Draft

refactor(memory): derive catalog configuration from properties#3101
blackmwk wants to merge 4 commits into
apache:mainfrom
blackmwk:ir-3095-memory-properties

Conversation

@blackmwk

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

What changes are included in this PR?

  • Replace manual Memory catalog property extraction with the shared Properties derive.
  • Preserve warehouse validation and forward unmodeled properties to downstream consumers.
  • Add focused coverage for typed and retained catalog properties.

Are these changes tested?

  • cargo test -p iceberg --lib catalog::memory::catalog::tests::test_catalog_properties
  • cargo test -p iceberg --lib catalog::memory::catalog::tests::test_create_table_throws_error_if_table_location_and_namespace_location_and_warehouse_location_are_missing
  • cargo clippy -p iceberg --lib --all-features -- -D warnings
  • cargo fmt --all -- --check

AI Disclosure

This change was developed with assistance from OpenAI Codex. The contributor reviewed the resulting diff and test output.

Replace manual catalog property extraction with the shared derive while preserving warehouse validation and forwarding unmodeled properties.

Tracks [apache#3095](apache#3095).

Generated-by: Codex
Comment thread crates/iceberg/src/catalog/memory/catalog.rs Outdated
Comment thread crates/iceberg/src/catalog/memory/catalog.rs Outdated
Comment thread crates/iceberg/src/catalog/memory/catalog.rs Outdated
Remove the redundant config wrapper and catch-all property field, expose the typed properties, and retain the catalog name and typed properties on MemoryCatalog.

Addresses review feedback on [apache#3101](apache#3101).

Generated-by: Codex
Comment thread crates/iceberg/src/catalog/memory/catalog.rs Outdated
Comment thread crates/iceberg/src/catalog/memory/catalog.rs Outdated
Comment thread crates/iceberg/src/catalog/memory/catalog.rs Outdated
Comment thread crates/iceberg/src/catalog/memory/catalog.rs Outdated
Comment thread crates/iceberg/src/catalog/memory/catalog.rs Outdated
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.

refactor(memory): derive catalog configuration from properties

1 participant