Repository navigation
feat: V3 support - #1364
feat: V3 support#1364
Conversation
|
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. WalkthroughAdds Iceberg table format V3 support: DB migration, Postgres tabular load/create/commit paths, catalog diffs for encryption keys and next_row_id; updates tests, CI images, Rust toolchain/deps, minor logging/router scaffolding, and S3 test coverage. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Client
participant API as Lakekeeper API
participant PG as Postgres
rect rgba(200,230,255,0.12)
note over Client,API: Create table with format-version '3'
Client->>API: CreateTableRequest(format-version="3")
API->>API: parse → FormatVersion::V3
API->>PG: INSERT INTO table (..., table_format_version='3', next_row_id=$n, ...)
PG-->>API: RETURNING table_id
API-->>Client: 201 Created
end
sequenceDiagram
autonumber
participant Client
participant API as Lakekeeper API
participant PG as Postgres
rect rgba(220,255,220,0.12)
note over Client,API: Commit advances next_row_id and applies encryption key changes
Client->>API: CommitRequest(diff flags)
API->>API: compute new next_row_id, diff flags
API->>PG: UPDATE table SET ..., next_row_id=$n WHERE ... RETURNING next_row_id
alt added keys
API->>PG: INSERT INTO table_encryption_keys ...
end
alt removed keys
API->>PG: DELETE FROM table_encryption_keys ...
end
PG-->>API: OK
API-->>Client: 200 OK
end
sequenceDiagram
autonumber
participant API as Lakekeeper API
participant PG as Postgres
rect rgba(255,240,200,0.12)
note over API,PG: Load table metadata including next_row_id & encryption keys
API->>PG: SELECT table_format_version, next_row_id, snapshot_first_row_ids, assigned_rows, key_ids, ... FROM tables JOIN table_encryption_keys WHERE ...
PG-->>API: Row { table_format_version='3', next_row_id, snapshot_..., encryption_* }
API->>API: build TableMetadata(format=V3, next_row_id, encryption_keys, ...)
API-->>Client: metadata
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for Apache Iceberg table format version 3 (V3) to lakekeeper. The implementation includes database schema updates, API changes, and comprehensive test coverage for V3-specific features like row tracking.
Key changes include:
- Added V3 format version support with database migrations and schema updates
- Implemented row tracking functionality with
next_row_idfield management - Updated Spark integration tests to validate V3 table operations
Reviewed Changes
Copilot reviewed 16 out of 22 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/python/tests/test_spark.py | Added V3 table creation test with row tracking validation |
| tests/python/tests/conftest.py | Added version checking logic for V3 support detection |
| tests/docker-compose-trino-opa-overlay.yaml | Updated Trino version for V3 compatibility |
| tests/README.md | Updated Spark image version and added V3 test documentation |
| crates/lakekeeper/src/serve.rs | Improved shutdown logging with error handling |
| crates/lakekeeper/src/implementations/postgres/tabular/table/mod.rs | Major refactor to support V3 format and row tracking |
| crates/lakekeeper/src/implementations/postgres/tabular/table/create.rs | Added V3 support to table creation |
| crates/lakekeeper/src/implementations/postgres/tabular/table/commit.rs | Added V3 support to table commits |
| crates/lakekeeper/src/catalog/tables.rs | Added V3 format version parsing and comprehensive tests |
| crates/lakekeeper/src/catalog/commit_tables.rs | Added new table update types for encryption |
| crates/lakekeeper/src/api/router.rs | Added debugging middleware (commented out) |
| crates/lakekeeper/migrations/20250923102542_v3_support.sql | Database migration for V3 support |
| crates/io/src/s3/s3_location.rs | Uncommented test cases |
| Cargo.toml | Updated iceberg dependency to support V3 |
| .github/workflows/*.yml | Updated Spark version in CI workflows |
Files not reviewed (5)
- .sqlx/query-484b59fcabe1ffc93c56d178e947c0d5e535b8da16e0d69e5b7aa7a0afc348fb.json: Language not supported
- .sqlx/query-605b07463ee914ce1fdb6f0ed439ecf0fea4959f7c6fc2ca03ff587c167eef12.json: Language not supported
- .sqlx/query-64ae7454b6673cd449124ef11046fde7f75d9a4cd41fa25824a013c9a42b8701.json: Language not supported
- .sqlx/query-a31269da65f9ecbb7fbf9f75686e887d4f61e700a747d52856326fa620494347.json: Language not supported
- .sqlx/query-c962b71a92ff3e1177084527a92518ce0690428ee01723166823549a9909a30d.json: Language not supported
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Actionable comments posted: 6
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (2)
crates/lakekeeper/src/serve.rs (1)
503-505: Fix punctuation in user‑facing errorMissing space after period.
- "Server ID {}.The terms of service have not been accepted.", + "Server ID {}. The terms of service have not been accepted.",crates/lakekeeper/src/implementations/postgres/tabular/table/commit.rs (1)
254-261: Update commit size cap: now 8 params/commit for table update (was 7).As written,
MAX_PARAMETERS / 7can exceed the parameter limit and cause runtime failures on large commits.- if commits.len() > (MAX_PARAMETERS / 7) { + // table update uses 8 binds per commit; tabular uses 6. Use the tighter bound. + if commits.len() > (MAX_PARAMETERS / 8) {
🧹 Nitpick comments (8)
tests/docker-compose-trino-opa-overlay.yaml (1)
32-32: Pin the Docker image by digest for reproducible CI and supply‑chain hygiene.Tags can drift. Pin
trinodb/trino:476to a specific digest.- image: trinodb/trino:476 + image: trinodb/trino:476@sha256:<replace-with-official-digest>You can obtain the digest via:
docker buildx imagetools inspect trinodb/trino:476 | rg -n 'Digest:' -n -C0.tests/README.md (1)
39-40: Add brief note clarifying V3 scenario and prerequisites — tests/README.md (lines 39–40) referencesspark_minio_sts-1.10.0; document that this runs Iceberg Format V3 tests and list prerequisites (e.g., enable V3 in config/env).crates/lakekeeper/src/serve.rs (1)
166-171: Treat shutdown signal as non‑error to avoid noisy error loggingThe shutdown signal handler currently returns an error, which logs as an error (before we branch on its ID). Returning Ok is cleaner and avoids misleading error logs.
- let shutdown_signal_handle = service_futures.spawn(async move { - shutdown_signal(cancellation_token_clone).await; - Err(anyhow!("Shutdown signal received")) - }); + let shutdown_signal_handle = service_futures.spawn(async move { + shutdown_signal(cancellation_token_clone).await; + Ok(()) + });crates/lakekeeper/src/api/router.rs (1)
163-200: If you ever enable the body-logging middleware, add safeguards.
- Warn: collects full body into memory; large/streaming bodies may OOM/block.
- Strip sensitive headers/body fields before logging.
- Gate behind a feature flag or env.
I can draft a redaction helper if needed.
crates/lakekeeper/src/implementations/postgres/tabular/table/create.rs (1)
234-234: Minor: drop unnecessaryas _cast for readability.Not required if
DbTableFormatVersionimplements the needed traits for sqlx bindings.- DbTableFormatVersion::from(table_metadata.format_version()) as _, + DbTableFormatVersion::from(table_metadata.format_version()),crates/lakekeeper/src/catalog/tables.rs (3)
1179-1191: Retry/backoff is solid; consider metrics and configurability.
- Emit a counter/gauge for retries and a histogram for backoff wait to aid ops.
- Consider making
MAX_RETRIES_ON_CONCURRENT_UPDATEand base delay configurable.
2898-2905: Prefer structured error assertions over message substring.Asserting on
err.error.code(and, if stable,err.error.r#type) is more robust than matching the message text.
2271-2301: Deriveadded-recordsfromrow_rangeto avoid drift.When
row_rangeis provided, computeadded-recordsfrom it to keep snapshot metadata self-consistent.Apply this diff:
- fn create_test_snapshot( - snapshot_id: i64, - timestamp_ms: i64, - sequence_number: i64, - manifest_list: &str, - row_range: Option<(u64, u64)>, - added_records: u64, - ) -> Snapshot { + fn create_test_snapshot( + snapshot_id: i64, + timestamp_ms: i64, + sequence_number: i64, + manifest_list: &str, + row_range: Option<(u64, u64)>, + added_records: u64, + ) -> Snapshot { let base_builder = Snapshot::builder() .with_snapshot_id(snapshot_id) .with_timestamp_ms(timestamp_ms) .with_sequence_number(sequence_number) .with_schema_id(0) .with_manifest_list(manifest_list) .with_summary(Summary { operation: Operation::Append, - additional_properties: HashMap::from_iter(vec![ + additional_properties: HashMap::from_iter(vec![ ("added-data-files".to_string(), "1".to_string()), - ("added-records".to_string(), added_records.to_string()), + ( + "added-records".to_string(), + row_range.map(|(_, c)| c).unwrap_or(added_records).to_string(), + ), ]), });
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (6)
.sqlx/query-484b59fcabe1ffc93c56d178e947c0d5e535b8da16e0d69e5b7aa7a0afc348fb.jsonis excluded by!.sqlx/**.sqlx/query-605b07463ee914ce1fdb6f0ed439ecf0fea4959f7c6fc2ca03ff587c167eef12.jsonis excluded by!.sqlx/**.sqlx/query-64ae7454b6673cd449124ef11046fde7f75d9a4cd41fa25824a013c9a42b8701.jsonis excluded by!.sqlx/**.sqlx/query-a31269da65f9ecbb7fbf9f75686e887d4f61e700a747d52856326fa620494347.jsonis excluded by!.sqlx/**.sqlx/query-c962b71a92ff3e1177084527a92518ce0690428ee01723166823549a9909a30d.jsonis excluded by!.sqlx/**Cargo.lockis excluded by!**/*.lock
📒 Files selected for processing (17)
.github/workflows/integration_test_workflow.yml(1 hunks).github/workflows/release.yml(1 hunks).github/workflows/unittests.yml(1 hunks)Cargo.toml(2 hunks)crates/io/src/s3/s3_location.rs(1 hunks)crates/lakekeeper/migrations/20250923102542_v3_support.sql(1 hunks)crates/lakekeeper/src/api/router.rs(2 hunks)crates/lakekeeper/src/catalog/commit_tables.rs(1 hunks)crates/lakekeeper/src/catalog/tables.rs(6 hunks)crates/lakekeeper/src/implementations/postgres/tabular/table/commit.rs(5 hunks)crates/lakekeeper/src/implementations/postgres/tabular/table/create.rs(4 hunks)crates/lakekeeper/src/implementations/postgres/tabular/table/mod.rs(8 hunks)crates/lakekeeper/src/serve.rs(1 hunks)tests/README.md(2 hunks)tests/docker-compose-trino-opa-overlay.yaml(1 hunks)tests/python/tests/conftest.py(1 hunks)tests/python/tests/test_spark.py(1 hunks)
🧰 Additional context used
🧬 Code graph analysis (5)
crates/lakekeeper/src/catalog/tables.rs (4)
crates/lakekeeper/src/implementations/postgres/tabular/table/mod.rs (5)
from(126-132)from(136-142)from(890-904)create_request(950-1000)metadata(1829-1829)crates/lakekeeper/src/api/iceberg/v1/tables.rs (3)
load_table(83-88)not_specified(382-387)create_table(66-72)crates/lakekeeper/src/catalog/commit_tables.rs (1)
requirements(17-24)crates/lakekeeper/src/tests/mod.rs (1)
create_table(105-123)
crates/lakekeeper/src/implementations/postgres/tabular/table/create.rs (2)
crates/iceberg-ext/src/catalog/rest/error.rs (1)
bad_request(127-133)crates/lakekeeper/src/implementations/postgres/tabular/mod.rs (5)
from(728-733)from(737-742)from(1008-1013)from(1017-1022)from(1026-1031)
crates/lakekeeper/src/implementations/postgres/tabular/table/commit.rs (2)
crates/iceberg-ext/src/catalog/rest/error.rs (1)
bad_request(127-133)crates/lakekeeper/src/implementations/postgres/tabular/table/mod.rs (3)
from(126-132)from(136-142)from(890-904)
tests/python/tests/test_spark.py (1)
tests/python/tests/conftest.py (4)
spark_supports_v3(70-77)spark(536-595)namespace(528-532)spark_name(414-415)
crates/lakekeeper/src/implementations/postgres/tabular/table/mod.rs (2)
crates/iceberg-ext/src/catalog/rest/error.rs (2)
internal(161-172)new(232-244)crates/lakekeeper/src/service/storage/mod.rs (1)
join_location(893-895)
🪛 Ruff (0.13.1)
tests/python/tests/test_spark.py
1086-1086: Possible SQL injection vector through string-based query construction
(S608)
1088-1088: Possible SQL injection vector through string-based query construction
(S608)
1089-1089: Possible SQL injection vector through string-based query construction
(S608)
1090-1090: Possible SQL injection vector through string-based query construction
(S608)
1092-1092: Possible SQL injection vector through string-based query construction
(S608)
🔇 Additional comments (27)
tests/docker-compose-trino-opa-overlay.yaml (1)
32-32: Trino 476 bump — confirm healthcheck, auth, and update remaining image tags.
Remaining compose files still use Trino 467 — update or confirm intentional:
- tests/docker-compose.yaml:234 (image: trinodb/trino:467)
- examples/access-control-advanced/docker-compose.yaml:93 (image: trinodb/trino:467)
- examples/minimal/docker-compose.yaml:166 (image: trinodb/trino:467)
- examples/access-control-simple/docker-compose.yaml:78 (image: trinodb/trino:467)
Healthchecks target /v1/status over HTTP; confirm Trino 476 still exposes /v1/status and whether the healthcheck should use HTTPS/proxy:
- tests/docker-compose-trino-opa-overlay.yaml:36 (curl -I http://localhost:8080/v1/status)
- tests/docker-compose.yaml:239
- examples/access-control-simple/docker-compose.yaml:82
- examples/access-control-advanced/docker-compose.yaml:97
- examples/minimal/docker-compose.yaml:170
Auth/OIDC check incomplete (ripgrep skip). Manually verify access-control/config and config.properties compatibility with 476 and that OIDC/OAuth2 works via the HTTPS proxy (overlay sets OIDC_ISSUER=http://keycloak:8080/realms/iceberg at tests/docker-compose-trino-opa-overlay.yaml:34).
tests/README.md (2)
12-12: Approve — Spark image tag verified
apache/spark:3.5.6-java17-python3 exists on Docker Hub; bump looks good.
17-18: New S3 invocation LGTM — confirm test scenario wiring
tests/run.sh exists but 'spark_minio_sts-1.8.0' only appears in tests/README.md (lines 17–18); ensure tests/run.sh (and any scenario files/mappings) recognize/invoke this scenario or add the missing wiring.Cargo.toml (2)
14-14: Align toolchain across repo and CI.
rust-version = "1.87.0"matches CI’sRUST_TOOLCHAIN: 1.87. All good. Please confirm dependent crates compile cleanly with 1.87.
76-80: Verify pinned iceberg-rust rev exposes FormatVersion::V3 and encryption TableUpdate variants. Codebase uses FormatVersion::V3 (crates/lakekeeper/src/catalog/tables.rs) and TableUpdate::AddEncryptionKey/RemoveEncryptionKey (crates/lakekeeper/src/catalog/commit_tables.rs). Upstream commit cd5321c9 not found; commit e5215a11 (May 16, 2025) added EncryptedKey/encryption_keys — ensure the pinned rev includes that change or update to a rev containing it..github/workflows/unittests.yml (1)
13-13: Toolchain bump acknowledged.CI env now uses Rust 1.87, consistent with Cargo.toml.
crates/lakekeeper/src/api/router.rs (1)
146-149: Good: debug middleware is commented out.When enabling, avoid production use and scrub PII from logs.
crates/io/src/s3/s3_location.rs (1)
259-278: LGTM: enabling these S3 parsing cases broadens coverage.Trailing slash and multi-segment cases align with current Location/path_segments behavior.
crates/lakekeeper/src/catalog/commit_tables.rs (1)
110-112: LGTM: new TableUpdate variants mapped for logging.Keeps match exhaustive with iceberg-rust changes.
tests/python/tests/conftest.py (1)
69-78: Fix comment and clarify threshold; optional: parse with packaging.version.Change comment to reference Iceberg table format V3 and “>= 1.10.0”.
Apply:
@property def spark_supports_v3(self) -> bool: version = self.spark_iceberg_version - # Versions above 1.10.0 support Spark3 + # Iceberg table format V3 is supported starting with >= 1.10.0 major_version = int(version.split(".")[0]) minor_version = int(version.split(".")[1]) if major_version < 1 or (major_version == 1 and minor_version < 10): return False return TrueOptional: use packaging.version to handle pre-releases/patches robustly.
crates/lakekeeper/migrations/20250923102542_v3_support.sql (3)
26-35: Good sequence for backfilling and enforcing NOT NULL on next_row_id.Backfill to 0 before NOT NULL is correct and matches code expectations.
3-6: OK to drop trigger/function — no remaining runtime references found.
Created in crates/lakekeeper/migrations/20241106201139_split_table_metadata.sql and dropped in crates/lakekeeper/migrations/20250923102542_v3_support.sql; no other references in the repo.
1-1: Resolved — migration runner forces no-transaction (migration.no_tx = true)
crates/lakekeeper/src/implementations/postgres/migrations/mod.rs sets migration.no_tx = true before applying each migration, so ALTER TYPE will be executed outside a transaction.crates/lakekeeper/src/implementations/postgres/tabular/table/create.rs (1)
221-239: INSERT column/parameter arity updated correctly (added next_row_id).SQL and bindings align (8 fields). Good.
crates/lakekeeper/src/implementations/postgres/tabular/table/commit.rs (3)
155-165: Overflow guard on next_row_id is correct.Good validation and error surfacing.
171-172: FormatVersion mapping viaFromis cleaner.Solid simplification.
205-206: VALUES alias list correctly includes next_row_id.Matches column list in SET.
crates/lakekeeper/src/implementations/postgres/tabular/table/mod.rs (6)
116-123: V3 enum addition looks correct.Postgres enum mapping via sqlx with kebab-case and string labels is consistent.
125-143: Bidirectional conversions include V3.Round-trip coverage for FormatVersion is complete.
220-225: Non-optional DB fields andnext_row_idtype align with migration and runtime.Good tightening of invariants.
239-250: Required-field handling via local expect helper is fine.Clear error typing for missing critical data.
439-449: Correct use ofu64::try_fromfor next_row_id conversion.Addresses prior feedback on robust conversion from signed DB type.
450-489: TableMetadata reconstruction updates are comprehensive and consistent.V3/version, defaults, partitioning, refs, stats, and
next_row_idare correctly populated and normalized.crates/lakekeeper/src/catalog/tables.rs (4)
2172-2214: Test helpers read well and reduce duplication.Nice consolidation (
create_test_schema,create_table_request). This keeps tests concise and consistent.
2798-2815: Defaulting to V2 is covered by tests. LGTM.Good regression guard for the implicit format version.
2818-2836: Explicit V3 table creation test is clear and targeted.Validates both format version and initial
next_row_id. Looks good.
1988-2003: Approve — V3 mapping and DB migrations verified. Found DbTableFormatVersion::V3 ↔ FormatVersion::V3 conversions, migration crates/lakekeeper/migrations/20250923102542_v3_support.sql adds enum value '3', and V3 tests in crates/lakekeeper/src/catalog/tables.rs — no action required.
|
@CodeRabbit review |
✅ Actions performedReview triggered.
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (4)
crates/io/tests/integration_tests.rs (1)
53-58: Improve diagnosability by including the invalid S3 endpoint value in the errorInclude the raw endpoint string in the error to speed up troubleshooting and remove the extra map_err by handling it at the parse site.
- endpoint: endpoint - .map(|e| e.parse()) - .transpose() - .map_err(|e| anyhow::anyhow!("Invalid S3 endpoint URL: {e}"))?, + endpoint: endpoint + .map(|e| e.parse().map_err(|err| anyhow::anyhow!("Invalid S3 endpoint URL '{e}': {err}"))) + .transpose()?,crates/lakekeeper/src/catalog/tables.rs (3)
1988-2003: Make format-version parsing whitespace/case tolerant.Trim and lowercase the property before matching so " V3 ", "V3", etc. work. Safe, backwards compatible.
- let format_version = properties + let format_version = properties .as_mut() .and_then(|props| props.remove(PROPERTY_FORMAT_VERSION)) - .map(|s| match s.as_str() { - "v1" | "1" => Ok(FormatVersion::V1), - "v2" | "2" => Ok(FormatVersion::V2), - "v3" | "3" => Ok(FormatVersion::V3), - _ => Err(ErrorModel::bad_request( - format!("Invalid format version specified in table_properties: {s}"), - "InvalidFormatVersion", - None, - )), - }) + .map(|s| { + let s = s.trim().to_ascii_lowercase(); + match s.as_str() { + "v1" | "1" => Ok(FormatVersion::V1), + "v2" | "2" => Ok(FormatVersion::V2), + "v3" | "3" => Ok(FormatVersion::V3), + _ => Err(ErrorModel::bad_request( + format!("Invalid format version specified in table_properties: {s}"), + "InvalidFormatVersion", + None, + )), + } + }) .transpose()? .unwrap_or(FormatVersion::V2);
2817-2937: Prefer asserting structured error fields over message substrings.Message text can change; assert HTTP status and, if available, error type.
- // Assert that the commit fails - assert!(invalid_commit_result.is_err()); - let err_string = invalid_commit_result.as_ref().unwrap_err().to_string(); - assert!( - err_string.contains("first-row-id is behind table next-row-id"), - "The error message `{err_string}` did not contain the expected text", - ); + // Assert that the commit fails with a 400 and a meaningful message + assert!(invalid_commit_result.is_err()); + let e = invalid_commit_result.unwrap_err(); + assert_eq!(e.error.code, StatusCode::BAD_REQUEST, "{e:?}"); + assert!( + e.error.message.contains("first-row-id is behind table next-row-id"), + "Unexpected error message: {}", + e.error.message + );
2940-3145: Add a test for property value "v3" (not just "3").You already accept "v3" in parsing; add a creation test with PROPERTY_FORMAT_VERSION="v3" to lock it in.
Would you like me to draft a small test similar to test_table_v3 that sets PROPERTY_FORMAT_VERSION to "v3"?
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
Cargo.lockis excluded by!**/*.lock
📒 Files selected for processing (6)
Cargo.toml(2 hunks)crates/io/tests/integration_tests.rs(2 hunks)crates/lakekeeper/src/catalog/tables.rs(6 hunks)crates/lakekeeper/src/implementations/postgres/tabular/table/create.rs(4 hunks)crates/lakekeeper/src/serve.rs(1 hunks)tests/python/tests/conftest.py(1 hunks)
🚧 Files skipped from review as they are similar to previous changes (4)
- Cargo.toml
- tests/python/tests/conftest.py
- crates/lakekeeper/src/serve.rs
- crates/lakekeeper/src/implementations/postgres/tabular/table/create.rs
🔇 Additional comments (4)
crates/io/tests/integration_tests.rs (1)
126-126: LGTM: clearer GCS env-var error messageIncluding the specific env var name is a nice clarity boost.
Please ensure both LAKEKEEPER_TEST__GCS_BUCKET and LAKEKEEPER_TEST__GCS_HNS_BUCKET are set in CI/local env where these tests run.
crates/lakekeeper/src/catalog/tables.rs (3)
2034-2040: LGTM: test imports expanded appropriately for V3.Covers FormatVersion, Snapshot refs/retention, and TableUpdate.
2169-2269: LGTM: solid test helpers.Clear scaffolding for schema, requests, load/commit, snapshots, and refs.
2797-2815: LGTM: default is V2 when unspecified.Test asserts the intended default behavior.
|
@CodeRabbit review |
✅ Actions performedReview triggered.
|
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (4)
crates/lakekeeper/src/api/management/v1/warehouse/mod.rs (1)
405-416: LGTM:.zip(warehouses)is correct and equivalent to consuming with.into_iter().This moves the Vec into the zip via IntoIterator, preserves order, and keeps behavior unchanged. Minor: for consistency with surrounding code using
.into_iter(), you could keep the explicit call, but it’s optional.crates/lakekeeper/src/implementations/postgres/tabular/table/common.rs (1)
799-845: Consider making encrypted_by_id nullable instead of forcing empty stringsIf
EncryptedKey::encrypted_by_id()is optional, prefer passingOption<String>so NULLs are stored instead of empty strings.- let mut encrypted_by_ids = Vec::with_capacity(n_keys); + let mut encrypted_by_ids: Vec<Option<String>> = Vec::with_capacity(n_keys); ... - encrypted_by_ids.push(key.encrypted_by_id().to_string()); + encrypted_by_ids.push(key.encrypted_by_id().map(|s| s.to_string()));crates/lakekeeper/src/implementations/postgres/tabular/table/commit.rs (1)
369-369: Minor documentation update needed.The comment should be updated to reflect that this step must also run after insert_encryption_keys, not just insert_schemas.
- // Must run after insert_schemas & after insert_encryption_keys + // Must run after insert_schemas and insert_encryption_keysCargo.toml (1)
76-80: Git-pinned iceberg rev OK — V3 present; prefer tag over raw SHA
- Pinned commit d79749059f66c728fabdeb7f8ae3d68b58d0dc80 ("Add Snapshot V3 serialization") adds Snapshot V3/TableMetadata V3 serde and exposes FormatVersion::V3; the iceberg crate defines features storage-gcs, storage-azdls, storage-s3 used in your Cargo.toml.
- No tag/release points exactly to this commit — prefer pinning to a tag/release on your fork for better traceability.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
Cargo.lockis excluded by!**/*.lock
📒 Files selected for processing (9)
Cargo.toml(2 hunks)crates/lakekeeper/migrations/20250923102542_v3_support.sql(1 hunks)crates/lakekeeper/src/api/management/v1/warehouse/mod.rs(1 hunks)crates/lakekeeper/src/catalog/tables.rs(9 hunks)crates/lakekeeper/src/implementations/postgres/tabular/table/commit.rs(11 hunks)crates/lakekeeper/src/implementations/postgres/tabular/table/common.rs(16 hunks)crates/lakekeeper/src/implementations/postgres/tabular/table/create.rs(7 hunks)crates/lakekeeper/src/implementations/postgres/tabular/table/mod.rs(17 hunks)crates/lakekeeper/src/serve.rs(1 hunks)
🧰 Additional context used
🧠 Learnings (5)
📚 Learning: 2025-09-23T18:56:52.730Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1364
File: crates/lakekeeper/migrations/20250923102542_v3_support.sql:7-24
Timestamp: 2025-09-23T18:56:52.730Z
Learning: In the lakekeeper project, columns like table_format_version, last_column_id, last_sequence_number, last_updated_ms, and last_partition_id were populated from previous migrations that extracted data from a metadata JSONB column, so they should already be NOT NULL in practice when setting NOT NULL constraints in subsequent migrations.
Applied to files:
crates/lakekeeper/migrations/20250923102542_v3_support.sql
📚 Learning: 2025-09-21T15:13:20.532Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1353
File: crates/lakekeeper/src/implementations/postgres/tasks/get_task_details.rs:163-165
Timestamp: 2025-09-21T15:13:20.532Z
Learning: The entity_name column in the task and task_log tables is NOT NULL as enforced by the migration 20250919101934_add_task_entity_name.sql, which backfills existing rows and sets the constraint, so no NULL checking is needed in queries.
Applied to files:
crates/lakekeeper/migrations/20250923102542_v3_support.sql
📚 Learning: 2025-08-30T10:23:41.143Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1316
File: crates/lakekeeper/migrations/20250826171037_task_runtime_information.sql:7-7
Timestamp: 2025-08-30T10:23:41.143Z
Learning: In the task_runtime_information migration (20250826171037), truncating task_log is intentional as confirmed by c-thiel, likely due to significant schema changes requiring a clean slate.
Applied to files:
crates/lakekeeper/migrations/20250923102542_v3_support.sql
📚 Learning: 2025-08-31T11:28:55.756Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1316
File: .sqlx/query-0aeb5d6e3f65746cefe75e374c69780174a7474580da84345cb777e2343d0280.json:4-22
Timestamp: 2025-08-31T11:28:55.756Z
Learning: The task_final_status PostgreSQL enum and the primary key constraint on task_log(task_id, attempt) were both established in migration 20250523101407_tasks_store_their_state.sql, not missing from the schema.
Applied to files:
crates/lakekeeper/migrations/20250923102542_v3_support.sql
📚 Learning: 2025-09-18T20:08:00.663Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1254
File: .sqlx/query-552ddb89100de8fb3c374e95c885dfd2da32c9d51d30acf2d60811edbd545dbc.json:3-3
Timestamp: 2025-09-18T20:08:00.663Z
Learning: In the lakekeeper codebase, table_id and view_id are scoped by warehouse_id through composite primary keys (warehouse_id, table_id) and (warehouse_id, view_id). This design allows ID reuse across warehouses while preventing cross-warehouse joins through proper foreign key constraints. When reviewing SQL queries, JOIN conditions like `t.warehouse_id = $1 AND t.table_id = ti.tabular_id` are correct because they ensure warehouse scoping without needing additional `ti.warehouse_id = $1` constraints.
Applied to files:
crates/lakekeeper/src/implementations/postgres/tabular/table/mod.rs
🪛 GitHub Check: check-format
crates/lakekeeper/src/serve.rs
[warning] 202-202:
Diff in /home/runner/work/lakekeeper/lakekeeper/crates/lakekeeper/src/serve.rs
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (13)
- GitHub Check: Build Binary (x86_64-unknown-linux-musl, ubuntu-24.04, lakekeeper-x86_64-unknown-linux-musl.tar.g...
- GitHub Check: Build Binary (x86_64-unknown-linux-gnu, ubuntu-22.04, lakekeeper-x86_64-unknown-linux-gnu.tar.gz,...
- GitHub Check: docker / docker
- GitHub Check: docker / docker
- GitHub Check: clippy
- GitHub Check: sqlx-check
- GitHub Check: test
- GitHub Check: check-generated-openapi-matches
- GitHub Check: security_audit
- GitHub Check: docker / docker
- GitHub Check: docker / docker
- GitHub Check: openfga
- GitHub Check: security_audit
🔇 Additional comments (61)
crates/lakekeeper/src/serve.rs (1)
198-205: Cancel the token only on error; avoid cancelling during graceful pathMove
cancellation_token.cancel()into the error branch to preserve graceful shutdown semantics, as previously discussed.- if let Some(err) = serving_result.as_ref().err() { - tracing::error!("Service error: {err}. Initiating shutdown of background services."); - } else { - tracing::info!("Service is shutting down gracefully."); - } - - cancellation_token.cancel(); + if let Some(err) = serving_result.as_ref().err() { + tracing::error!("Service error: {err}. Initiating shutdown of background services."); + cancellation_token.cancel(); + } else { + tracing::info!("Service is shutting down gracefully."); + }crates/lakekeeper/migrations/20250923102542_v3_support.sql (2)
1-20: Solid addition of table_encryption_keys with proper PK and FKSchema, PK on (warehouse_id, table_id, key_id), FK with ON DELETE CASCADE, and time columns look good.
22-53: NOT NULL constraints and next_row_id bootstrapping look correctGiven prior backfills and invariants, setting NOT NULL and initializing next_row_id to 0 is appropriate.
Please confirm the migration ordering ensures functions
add_time_columnsandtrigger_updated_atexist beforehand on all supported environments.crates/lakekeeper/src/catalog/tables.rs (3)
1666-1702: Encryption key diffs are computed correctlyUsing FxHashSet-based set diffs for added/removed encryption keys is clean and efficient.
1749-1751: Public diffs struct extended appropriatelyAdding
added_encryption_keysandremoved_encryption_keystoTableMetadataDiffsis consistent with the new diff logic.
2015-2015: Support for V3 in property parsingMapping "v3"/"3" to
FormatVersion::V3completes the format-version handling.crates/lakekeeper/src/implementations/postgres/tabular/table/common.rs (2)
334-337: Early return on empty iterators prevents no-op queriesGood guard; avoids unnecessary round-trips.
536-575: V3 snapshot columns handled; confirmencryption_key_idtypeInsertion of
first_row_id,assigned_rows, andkey_idis wired through. Please verify thatSnapshotRef::encryption_key_id()matches the BIGINT binding here; if it’s a string in the Iceberg crate, bindings and the migration should be adjusted accordingly.crates/lakekeeper/src/implementations/postgres/tabular/table/create.rs (2)
150-157: Persist encryption keys on createPersisting table encryption keys during creation is correct and complements V3 support.
209-237: next_row_id persisted and format version conversion look correct
- Converting to
DbTableFormatVersionand insertingnext_row_idwith overflow checks is correct.- Column order and bindings align with the migration.
Please confirm
DbTableFormatVersion::fromcovers V1/V2/V3 exhaustively and remains in sync with the Postgres enum.crates/lakekeeper/src/implementations/postgres/tabular/table/commit.rs (14)
3-3: LGTM! Import updated for V3 support.The ErrorKind import is correctly added to support the new error handling pattern for next_row_id overflow validation.
16-16: LGTM! TableUpdateFlags import is correctly used.The import properly reflects the refactoring from TableUpdates to TableUpdateFlags as described in the AI summary.
19-19: LGTM! TableId import added for encryption key management.The TableId import supports the new V3 encryption key functionality, where every row in an Iceberg table includes row lineage fields (_row_id and _last_updated_sequence_number) and tables must maintain the next-row-id field.
63-63: LGTM! Correct conversion to TableUpdateFlags.The conversion from TableUpdates slice to TableUpdateFlags using the From trait is properly implemented and aligns with the refactoring described in the summary.
129-131: LGTM! Database schema updated for V3 next_row_id field.The SQL UPDATE correctly includes next_row_id as required by Iceberg V3, where engines must maintain the next-row-id table field when writing data files.
155-164: LGTM! Proper overflow validation for next_row_id.The validation correctly handles the conversion from u64 to i64 for the database storage, with appropriate error handling for values exceeding i64::MAX. This aligns with Iceberg V3 requirements where engines must maintain the next-row-id table field.
171-171: LGTM! Using From trait for format version conversion.The conversion from FormatVersion to DbTableFormatVersion using the From trait is cleaner and more idiomatic than the previous explicit matching approach.
180-182: LGTM! VALUES clause updated for next_row_id.The SQL VALUES clause correctly includes the next_row_id parameter in the proper position for the table update query.
205-205: LGTM! SQL column list updated for next_row_id.The VALUES clause column specification correctly includes next_row_id in the appropriate position.
269-269: LGTM! Parameter type updated to TableUpdateFlags.The function signature correctly uses TableUpdateFlags instead of the previous TableUpdates, maintaining consistency with the refactoring.
273-273: LGTM! TableId extraction for encryption key management.The TableId extraction from metadata UUID properly supports the new encryption key functionality in V3.
274-277: LGTM! Destructuring updated for TableUpdateFlags.The destructuring pattern correctly matches the new TableUpdateFlags struct with snapshot_refs and properties fields.
354-367: LGTM! V3 encryption key insertion added.The encryption key handling is properly implemented as part of Iceberg V3's extended metadata structures to add new capabilities. The logic correctly inserts encryption keys when they are added in the diffs.
536-545: LGTM! V3 encryption key removal added.The encryption key removal logic is properly implemented and positioned after snapshot removal as indicated by the comment. This maintains proper dependency order in the metadata changes.
crates/lakekeeper/src/implementations/postgres/tabular/table/mod.rs (33)
18-20: LGTM! Import updates for V3 encryption support.The addition of EncryptedKey import and Summary import supports the new V3 encryption functionality and snapshot handling improvements.
49-59: LGTM! Helper function for next_row_id conversion.The next_row_id_as_i64 helper function properly handles the u64 to i64 conversion with appropriate error messaging for overflow conditions. This supports Iceberg V3's requirement for engines to maintain the next-row-id table field.
61-71: LGTM! Helper function for first_row_id conversion.The first_row_id_as_i64 helper function correctly handles the conversion with proper error context for snapshot row lineage fields.
73-83: LGTM! Helper function for assigned_rows conversion.The assigned_rows_as_i64 helper function properly handles the conversion with descriptive error messaging.
85-95: LGTM! Helper function for first_row_id reverse conversion.The first_row_id_as_u64 helper function correctly handles the reverse conversion from i64 to u64 with appropriate error handling.
97-107: LGTM! Helper function for assigned_rows reverse conversion.The assigned_rows_as_u64 helper function properly handles the reverse conversion with descriptive error messaging.
181-183: LGTM! V3 format version support added.The V3 variant is correctly added to DbTableFormatVersion enum to support Iceberg table format version 3.
190-193: LGTM! From conversion updated for V3.The From for FormatVersion implementation correctly maps V3 to FormatVersion::V3.
195-203: LGTM! Reverse From conversion added for V3.The From for DbTableFormatVersion implementation properly handles the reverse conversion including V3 support.
267-270: LGTM! V3 snapshot fields added to query structure.The snapshot_first_row_ids, snapshot_assigned_rows, and snapshot_key_ids fields support Iceberg V3's row lineage functionality where every row includes _row_id and _last_updated_sequence_number fields.
283-289: LGTM! Required fields made non-optional.The table metadata fields (table_format_version, next_row_id, last_sequence_number, last_column_id, last_updated_ms, last_partition_id) are correctly made non-optional, reflecting stronger validation in V3.
298-302: LGTM! V3 encryption key fields added.The encryption_key_ids, encryption_encrypted_key_metadatas, encryption_encrypted_by_ids, and encryption_properties fields properly support V3's encryption key functionality.
306-317: LGTM! Better error handling with expect helper.The expect helper function provides more consistent and descriptive error handling for required fields that were previously optional.
319-322: LGTM! Schemas handling updated with expect.The schemas field is now properly validated as required using the new expect helper.
324-331: LGTM! Partition specs handling updated with expect.Both partition_spec_ids and partition_specs are properly validated as required fields with descriptive error messages.
333-342: LGTM! Default partition spec validation enhanced.The default_partition_spec_id is now properly validated as required, and the logic correctly retrieves the corresponding partition spec with appropriate error handling.
359-362: LGTM! V3 row lineage fields added to snapshots.The snapshot construction includes the new V3 row lineage fields (snapshot_first_row_ids, snapshot_assigned_rows, snapshot_key_ids) that support row tracking across table versions.
364-407: LGTM! Enhanced snapshot building with V3 features.The snapshot building logic properly handles the new V3 fields:
- Row range construction from first_row_id and assigned_rows
- Encryption key ID support
- Conditional builder patterns based on available fields
This correctly implements V3's row lineage where engines find row-level changes by matching versions of rows across commits.
432-437: LGTM! Sort orders validation updated.Both sort_order_ids and sort_orders are properly validated as required fields using the expect helper.
507-513: LGTM! Current schema validation enhanced.The current_schema_id is now properly validated as required with descriptive error messaging.
515-531: LGTM! Default partition type resolution improved.The default partition type resolution includes proper validation of the current schema existence and enhanced error handling for partition type creation.
533-542: LGTM! Next_row_id conversion with validation.The next_row_id conversion from i64 to u64 properly validates the database value for Iceberg V3's next-row-id table field requirement.
544-566: LGTM! V3 encryption keys construction.The encryption keys are properly constructed from the database fields (key_ids, encrypted_key_metadatas, encrypted_by_ids, properties) into HashMap<String, EncryptedKey> format required by V3.
568-596: LGTM! Enhanced TableMetadata builder for V3.The TableMetadata builder now includes all V3 features:
- format_version from DbTableFormatVersion conversion
- next_row_id support
- encryption_keys integration
- All existing fields with proper type handling
This properly implements Iceberg V3's extended metadata structures with new capabilities.
598-606: LGTM! Table metadata normalization added.The try_normalize() call ensures the constructed TableMetadata is valid and consistent, with proper error propagation for any validation failures.
658-658: LGTM! SQL query updated for next_row_id.The SELECT statement correctly includes the next_row_id field from the table.
678-680: LGTM! SQL query updated for V3 snapshot fields.The query properly selects the new V3 row lineage fields (first_row_ids, assigned_rows, key_id) for snapshot construction.
703-707: LGTM! SQL query updated for V3 encryption fields.The SELECT statement correctly includes all encryption-related fields (key_ids, encrypted_key_metadatas, encrypted_by_ids, properties) needed for V3 encryption key support.
741-743: LGTM! SQL aggregation updated for V3 snapshot fields.The ARRAY_AGG operations correctly aggregate the new V3 row lineage fields (first_row_id, assigned_rows, key_id) for snapshot construction.
782-791: LGTM! SQL join added for encryption keys.The LEFT JOIN on table_encryption_keys properly aggregates all encryption-related fields needed for V3 support with correct warehouse and table scoping.
828-828: LGTM! Table metadata construction updated.The call to into_table_metadata() now returns Result directly instead of Option, reflecting the improved error handling and validation.
1022-1025: LGTM! Struct renamed to TableUpdateFlags.The struct name change from TableUpdates to TableUpdateFlags properly reflects the refactoring described in the summary.
1027-1029: LGTM! From implementation updated.The From<&[TableUpdate]> implementation is correctly updated to return TableUpdateFlags.
Cargo.toml (4)
14-14: Confirm MSRV policy and toolchain alignment (rust-version = 1.87.0).
- Cargo.toml sets rust-version = "1.87.0" (Cargo.toml:14).
- No rust-toolchain(.toml) found and CI workflows were not located by the automated search — verify .github/workflows pin the same toolchain.
- Actions: pin toolchain in CI (actions-rs/setup-rust or add rust-toolchain.toml), ensure local dev toolchain docs match, and add an MSRV CI job that builds/tests with 1.87.0.
84-84: typed-builder ^0.22 — verify all #[builder(...)] usages and any typed_builder::TypedBuilder derives still expandrg found many #[builder(...)] attributes across the repo — confirm cargo build/tests and re-check qualified derives (e.g. typed_builder::TypedBuilder) for attribute-name/behavior changes (setter(strip_option/strip_bool), default, default_code, etc.).
Files to inspect (non-exhaustive):
- crates/lakekeeper/src/serve.rs
- crates/lakekeeper/src/service/storage/s3.rs
- crates/lakekeeper/src/api/management/mod.rs
- crates/lakekeeper/src/api/management/v1/bootstrap.rs
- crates/lakekeeper/src/api/management/v1/warehouse/mod.rs
- crates/lakekeeper/src/api/iceberg/v1/namespace.rs
- crates/io/src/s3.rs
- crates/io/src/adls.rs
- crates/iceberg-ext/src/catalog/rest/table.rs
- crates/iceberg-ext/src/catalog/rest/error.rs
85-85: async-trait 0.1.89 — confirm MSRV and trait-object impactMultiple uses of #[async_trait::async_trait] exist across the repo (see grep output); update is low-risk but confirm async-trait 0.1.89 does not raise the MSRV your project supports, run CI across your MSRV/toolchain matrix, and verify there are no changed semantics around blanket trait-object uses.
68-68: quick-xml 0.38 + "serialize" feature — verified for current usageSearch shows only quick_xml::de::from_str and quick_xml::Error/DeError used (crates/lakekeeper/src/catalog/s3_signer/sign.rs — around lines 598 and 882); workspace Cargo.toml enables quick-xml with features = ["serialize"]; no Reader/Writer/events/se usages found.
|
@CodeRabbit review |
✅ Actions performedReview triggered.
|
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
crates/lakekeeper/src/implementations/postgres/tabular/table/common.rs (1)
551-575: Avoid Vec<Option<&str>> for TEXT[] bindings (lifetime/Encode issues).Sqlx array parameters are more reliable as owned Strings. Same applies to snapshot key_ids.
Apply these diffs:
- let mut key_ids = Vec::with_capacity(snap_cnt); + let mut key_ids: Vec<Option<String>> = Vec::with_capacity(snap_cnt); ... - key_ids.push(snap.encryption_key_id()); + key_ids.push(snap.encryption_key_id().map(|s| s.to_string()));And in insert_table_encryption_keys:
- let mut encrypted_by_ids = Vec::with_capacity(n_keys); + let mut encrypted_by_ids: Vec<Option<String>> = Vec::with_capacity(n_keys); ... - encrypted_by_ids.push(key.encrypted_by_id()); + encrypted_by_ids.push(key.encrypted_by_id().map(|s| s.to_string()));
🧹 Nitpick comments (2)
crates/lakekeeper/src/implementations/postgres/tabular/table/mod.rs (1)
306-608: into_table_metadata: solid reconstruction; one minor robustness suggestion.
- You gracefully parse encryption key properties, defaulting on invalid JSON. Consider failing fast if properties are present but malformed to avoid silently dropping key attributes.
Apply this stricter parse if desired:
- let properties = properties - .and_then(|p| serde_json::from_value::<HashMap<String, String>>(p).ok()) - .unwrap_or_default(); + let properties = match properties { + Some(p) => serde_json::from_value::<HashMap<String, String>>(p).map_err(|er| { + ErrorModel::internal( + "Error parsing encryption key properties", + "EncryptionKeyPropertiesParseError", + Some(Box::new(er)), + ) + })?, + None => HashMap::default(), + };crates/lakekeeper/migrations/20250923102542_v3_support.sql (1)
55-58: Snapshot V3 columns added — consider CHECK constraints.Recommended to enforce non-negative invariants at DB level:
- first_row_id >= 0
- assigned_rows >= 0
Proposed addition:
ALTER TABLE table_snapshot -ADD COLUMN IF NOT EXISTS first_row_id BIGINT, -ADD COLUMN IF NOT EXISTS assigned_rows BIGINT, +ADD COLUMN IF NOT EXISTS first_row_id BIGINT CHECK (first_row_id IS NULL OR first_row_id >= 0), +ADD COLUMN IF NOT EXISTS assigned_rows BIGINT CHECK (assigned_rows IS NULL OR assigned_rows >= 0), ADD COLUMN IF NOT EXISTS key_id TEXT;
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (5)
.sqlx/query-21dc8016c07b3001bccd53413f2a4b7c459a5068545c956e494fb6ff57634e64.jsonis excluded by!.sqlx/**.sqlx/query-399d2a92a76a51e2a3180e32d911c5aad85162271edab83c3d064095fc25ab0e.jsonis excluded by!.sqlx/**.sqlx/query-9504e01105af1bce5a8f8ab3151afd4a293842bdf1da34f55337ab7a0549f0bd.jsonis excluded by!.sqlx/**.sqlx/query-b3d44db896dc3651db98ef50cd28497dff719fb148b2008f7e9a0892ac6c8717.jsonis excluded by!.sqlx/**Cargo.lockis excluded by!**/*.lock
📒 Files selected for processing (6)
Cargo.toml(2 hunks)crates/lakekeeper/migrations/20250923102542_v3_support.sql(1 hunks)crates/lakekeeper/src/catalog/tables.rs(9 hunks)crates/lakekeeper/src/implementations/postgres/tabular/table/common.rs(16 hunks)crates/lakekeeper/src/implementations/postgres/tabular/table/mod.rs(17 hunks)crates/lakekeeper/src/serve.rs(1 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
- crates/lakekeeper/src/serve.rs
- Cargo.toml
🧰 Additional context used
🧠 Learnings (5)
📚 Learning: 2025-09-18T20:08:00.663Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1254
File: .sqlx/query-552ddb89100de8fb3c374e95c885dfd2da32c9d51d30acf2d60811edbd545dbc.json:3-3
Timestamp: 2025-09-18T20:08:00.663Z
Learning: In the lakekeeper codebase, table_id and view_id are scoped by warehouse_id through composite primary keys (warehouse_id, table_id) and (warehouse_id, view_id). This design allows ID reuse across warehouses while preventing cross-warehouse joins through proper foreign key constraints. When reviewing SQL queries, JOIN conditions like `t.warehouse_id = $1 AND t.table_id = ti.tabular_id` are correct because they ensure warehouse scoping without needing additional `ti.warehouse_id = $1` constraints.
Applied to files:
crates/lakekeeper/src/implementations/postgres/tabular/table/mod.rs
📚 Learning: 2025-09-23T18:56:52.730Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1364
File: crates/lakekeeper/migrations/20250923102542_v3_support.sql:7-24
Timestamp: 2025-09-23T18:56:52.730Z
Learning: In the lakekeeper project, columns like table_format_version, last_column_id, last_sequence_number, last_updated_ms, and last_partition_id were populated from previous migrations that extracted data from a metadata JSONB column, so they should already be NOT NULL in practice when setting NOT NULL constraints in subsequent migrations.
Applied to files:
crates/lakekeeper/migrations/20250923102542_v3_support.sql
📚 Learning: 2025-09-21T15:13:20.532Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1353
File: crates/lakekeeper/src/implementations/postgres/tasks/get_task_details.rs:163-165
Timestamp: 2025-09-21T15:13:20.532Z
Learning: The entity_name column in the task and task_log tables is NOT NULL as enforced by the migration 20250919101934_add_task_entity_name.sql, which backfills existing rows and sets the constraint, so no NULL checking is needed in queries.
Applied to files:
crates/lakekeeper/migrations/20250923102542_v3_support.sql
📚 Learning: 2025-08-30T10:23:41.143Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1316
File: crates/lakekeeper/migrations/20250826171037_task_runtime_information.sql:7-7
Timestamp: 2025-08-30T10:23:41.143Z
Learning: In the task_runtime_information migration (20250826171037), truncating task_log is intentional as confirmed by c-thiel, likely due to significant schema changes requiring a clean slate.
Applied to files:
crates/lakekeeper/migrations/20250923102542_v3_support.sql
📚 Learning: 2025-08-31T11:28:55.756Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1316
File: .sqlx/query-0aeb5d6e3f65746cefe75e374c69780174a7474580da84345cb777e2343d0280.json:4-22
Timestamp: 2025-08-31T11:28:55.756Z
Learning: The task_final_status PostgreSQL enum and the primary key constraint on task_log(task_id, attempt) were both established in migration 20250523101407_tasks_store_their_state.sql, not missing from the schema.
Applied to files:
crates/lakekeeper/migrations/20250923102542_v3_support.sql
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (14)
- GitHub Check: docker / docker
- GitHub Check: Build Binary (aarch64-unknown-linux-musl, ubuntu-24.04-arm, lakekeeper-aarch64-unknown-linux-musl...
- GitHub Check: Build Binary (aarch64-apple-darwin, macos-14, lakekeeper-aarch64-apple-darwin.tar.gz, false)
- GitHub Check: Build Binary (x86_64-unknown-linux-musl, ubuntu-24.04, lakekeeper-x86_64-unknown-linux-musl.tar.g...
- GitHub Check: Build Binary (x86_64-unknown-linux-gnu, ubuntu-22.04, lakekeeper-x86_64-unknown-linux-gnu.tar.gz,...
- GitHub Check: docker / docker
- GitHub Check: docker / docker
- GitHub Check: docker / docker
- GitHub Check: test
- GitHub Check: clippy
- GitHub Check: check-generated-openapi-matches
- GitHub Check: sqlx-check
- GitHub Check: security_audit
- GitHub Check: security_audit
🔇 Additional comments (36)
crates/lakekeeper/src/implementations/postgres/tabular/table/mod.rs (18)
18-20: Import updates for V3 and encryption look correct.
EncryptedKeyandSummaryimports are needed for V3 fields and snapshot summaries. No issues.
49-59: Safe u64→i64 conversion helper LGTM.Good error modeling with precise type name and original error attached.
61-83: Row-range conversion helpers LGTM.Both directions include clear bounds messaging; consistent with V3 semantics.
85-107: Negative guard on i64→u64 conversions is correct.Keeps snapshot fields non-negative as expected by spec.
174-183: Add DbTableFormatVersion::V3 (DB enum mapping) — correct.Enum value and sqlx renames align with the migration.
185-203: Bidirectional conversion V3↔V3 — correct and exhaustive.Covers all variants without fallthrough.
243-270: Added V3 snapshot fields in query struct — types align.Optional nested Option for nullable-per-row fields is appropriate for LEFT JOIN/ARRAY_AGG.
283-302: Added table-level V3 fields and encryption arrays — consistent with schema.Non-optional
table_format_version,next_row_idchoice matches migration; encryption vectors match aggregation query.
432-438: Sort orders map construction is fine; verify presence in legacy tables.If any pre‑existing tables can have zero sort orders,
expect(self.sort_order_ids, ...)will 500. If that’s impossible given earlier migrations, ignore.
507-525: current_schema validation: good error typing.Clear messages for missing/invalid schema id; matches expectations.
533-543: Converting next_row_id i64→u64 with internal error is right.Matches DB CHECK (>= 0) and covers unexpected negatives.
544-568: Encryption keys assembly looks correct.Key-id, metadata, optional encrypted_by_id, and (string,String) properties reconstructed as expected.
569-597: TableMetadata builder wiring for V3 is comprehensive.Includes
encryption_keysandnext_row_id; normalization step is guarded.
649-801: SQL load: V3 fields and joins scoped by warehouse — LGTM.
- ARRAY_AGG for V3 snapshot fields and encryption keys matches struct types.
- Warehouse scoping is correct per prior design (composite PK), no extra ti.warehouse_id predicate needed.
1023-1044: TableUpdateFlags rename/coverage OK.Flags focus on areas with DB effects; no issues.
2820-2839: Test: default format version V2 — good coverage.Validates implicit default behavior.
2840-3000: Test: full V3 flow (row ranges, encryption) — excellent.Covers invalid overlap and state transitions of next_row_id; great signal.
3001-3207: Test: V2→V3 migration path — strong scenario coverage.Validates upgrade and subsequent row-range handling.
crates/lakekeeper/src/catalog/tables.rs (4)
1686-1702: Add encryption key diffs — correct set logic.Uses FxHashSet symmetric deltas; string IDs align with metadata key ids.
1749-1751: Expose encryption key diffs in TableMetadataDiffs — good API extension.Public fields added are clear and consistent with other diffs.
2009-2024: Create: accept “v3|3” for PROPERTY_FORMAT_VERSION — correct.Defaulting to V2 remains unchanged; error on invalid strings is appropriate.
1297-1488: Commit pipeline resiliency/readability improvements LGTM.
- Clear retry/backoff with jitter on concurrent update.
- Best‑effort cleanup on failure.
- Contract verification placement is right.
crates/lakekeeper/src/implementations/postgres/tabular/table/common.rs (12)
50-53: Early return on empty schemas — good micro-optimization.
140-143: Early return on empty partition specs — good.
229-233: Early return on empty sort orders — good.
334-337: Early return on empty snapshot log — good.
411-414: Early return on empty metadata log — good.
455-459: Skip refs insert on zero — good.
536-539: Skip snapshot insert on zero — good.
597-613: UNNEST order/columns match INSERT — correct.Types and positions align with table schema including new V3 fields.
630-633: Skip properties upsert when empty — good.
664-667: Skip partition stats insert when empty — good.
726-729: Skip table stats insert when empty — good.
847-868: Encryption keys delete: correct scoping and predicate.crates/lakekeeper/migrations/20250923102542_v3_support.sql (2)
1-21: V3 enum value and encryption keys table — solid schema.
- Adds '3' to enum safely.
- table_encryption_keys PK (warehouse_id, table_id, key_id) with FK ON DELETE CASCADE, timestamps, and trigger — good.
25-53: NOT NULL constraints and next_row_id backfill — OK given prior migrations.Matches repository learning; transactional migration is safe here.
✅ PR Title Formatted CorrectlyThe title of this PR match the correct format. Thank you! |
* feat: Publish images to Dockerhub (lakekeeper#1274) * feat: Update UI to 0.9.0 with multi-project support (lakekeeper#1275) * chore: release 0.9.4 Release-As: 0.9.4 * chore: release main (lakekeeper#1262) * chore(ci): Fix Dockerhub login * chore(docs): Improve developer guide (lakekeeper#1265) * chore(docs): add info regarding `view_version`'s internal representation (lakekeeper#1261) * chore(docs): Architecture clarify Secret Store (lakekeeper#1284) * fix: Update Limes to 0.2.2 - Fixes compilation issue due to breaking `jwks_client_rs` change (lakekeeper#1282) * fix: Update Limes to 0.2.2 * increase min rust version * chore: release 0.9.5 Release-As: 0.9.5 * chore: release main (lakekeeper#1286) * chore: enable changelog sections for release-please (lakekeeper#1264) k * fix(deps): update rust crate rand to v0.9.2 (lakekeeper#1252) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate async-channel to v2.5.0 (lakekeeper#1225) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency mkdocs-material to v9.6.17 (lakekeeper#1289) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate anyhow to v1.0.99 (lakekeeper#1290) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore: Remove bitnami images (lakekeeper#1288) * feat!: Move to Lakekeeper IO based on hyperscaler SDKs (lakekeeper#1285) * chore(deps): update rust crate reqwest to v0.12.23 (lakekeeper#1294) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(docs): Improve Cloud storage test docs * fix: accept "disable" as PG sslmode as documented (lakekeeper#1303) * feat: Simplify task interface, re-exports, enable delete-after-commit (lakekeeper#1302) * feat: Introduce `RequestMetadata` for Internal Principals which bypass AuthZ (lakekeeper#1306) * chore(deps): update azure/setup-helm action to v4.3.1 (lakekeeper#1299) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(test): use nextest filterset instead of needs_env_var (lakekeeper#1304) * chore(deps): update rust crate openssl-src to v300.5.2 (lakekeeper#1292) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate async-compression to v0.4.28 (lakekeeper#1311) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate thiserror to v2.0.16 (lakekeeper#1296) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat: Provide `ApiContext` to externally registered tasks (lakekeeper#1307) * feat!: Simplify Task interface, extend SpecializedTask interface (lakekeeper#1310) * feat: Improve authorizer `are_allowed_*` batch check signature (lakekeeper#1315) * chore(authz): Enforce use of AuthZ decisions with #[must_use] (lakekeeper#1317) * feat: Task Management APIs (lakekeeper#1316) * chore(deps): update rust crate tracing-subscriber to v0.3.20 [security] (lakekeeper#1318) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat: Add `RunNow` and `RunAt` to Controls for Tasks (lakekeeper#1322) * chore(deps): update rust crate tokio-util to v0.7.16 (lakekeeper#1313) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(docs): Improve Entra ID docs (lakekeeper#1325) * chore(docs): Improve Upgrades & Migration docs (lakekeeper#1326) * feat: Add tasks heartbeat with Catalog state (lakekeeper#1324) * ci: add configuration for CodeRabbit reviews (lakekeeper#1327) * feat: Add optional STS session-tags in S3 STS requests for ABAC authorization (lakekeeper#1230) * feat: Random Server IDs (lakekeeper#1328) * chore(deps): update rust crate percent-encoding to v2.3.2 (lakekeeper#1312) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat(authz): Deprecate Permission Endpoints for Tables without WarehouseIDs (lakekeeper#1334) * fix: Tasks endpoints in router (lakekeeper#1335) * feat(ci): add nextest profile ci_no_secrets for external PRs (lakekeeper#1333) * chore(deps): update rust crate chrono to v0.4.42 (lakekeeper#1331) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore: Pin examples duckdb version to 1.3 (lakekeeper#1343) * feat!: Require warehouse_id when checking permissions on views or tables via ID (lakekeeper#1340) * fix: migrate away from bitnami in unittest.yml (lakekeeper#1344) * chore: Remove coderabitt config * fix(docs): Fix inconsistent URL format in README (lakekeeper#1345) Co-authored-by: Christian <[email protected]> * feat: Remove serde_yaml & serde_yml (lakekeeper#1341) * feat!: add `warehouse_id` to PKs of all `table_*` and `view_*` tables (lakekeeper#1254) * feat: Minor namespace join performance improvements * fix: Warehouse permissions are directly used for task retrieval & control (lakekeeper#1347) * fix: Potential Race Condition when undropping Tabulars (lakekeeper#1342) * fix: table rename authz and error handling (lakekeeper#1346) Co-authored-by: Andre Luis Anastacio <[email protected]> * chore(deps): update rust crate google-cloud-auth to v1.1.2 (lakekeeper#1337) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Christian <[email protected]> * chore(deps): update rust crate time to v0.3.44 (lakekeeper#1349) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency mkdocs-material to v9.6.20 (lakekeeper#1309) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Christian <[email protected]> * feat: Set ServerID during migration (lakekeeper#1348) * chore(deps): Remove utoipa fork (lakekeeper#1352) * chore(deps): update rust crate serde_with to v3.14.1 (lakekeeper#1351) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate url to v2.5.7 (lakekeeper#1354) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate async-compression to v0.4.30 (lakekeeper#1323) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Christian <[email protected]> * chore(deps): update rust crate serde_json to v1.0.145 (lakekeeper#1250) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Christian <[email protected]> * chore(deps): update strum monorepo to v0.27.2 (lakekeeper#1251) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Christian <[email protected]> * chore(deps): update serde monorepo to v1.0.226 (lakekeeper#1355) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update rust crate clap to v4.5.48 (lakekeeper#1356) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat: Add Entity Names to Tasks (lakekeeper#1353) * fix: case insensitivity of catalog endpoints (lakekeeper#1338) * fix: Improve delete_warehouse error message for active tasks * chore(deps): update rust crate tempfile to v3.22.0 (lakekeeper#1359) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Christian <[email protected]> * chore(deps): update rust crate axum-prometheus to 0.9.0 (lakekeeper#1358) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix: PgSslMode not supported error string * feat(authz)!: add OpenFGA schema v4 and v3->v4 migration (lakekeeper#1314) Co-authored-by: Christian <[email protected]> Co-authored-by: Christian Thiel <[email protected]> * chore(deps): update rust crate uuid to v1.18.1 (lakekeeper#1362) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency markdown-grid-tables to v0.6.0 (lakekeeper#1357) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate anyhow to v1.0.100 (lakekeeper#1350) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix: clippy * chore(deps): update rust crate moka to v0.12.11 (lakekeeper#1365) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate tempfile to v3.23.0 (lakekeeper#1367) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate async-nats to 0.43.0 (lakekeeper#1366) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update actions/setup-node action to v5 (lakekeeper#1371) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update actions/checkout action to v5 (lakekeeper#1369) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update actions/setup-python action to v6 (lakekeeper#1372) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat: V3 support (lakekeeper#1364) * chore: Set Get Task Permission to "CanGetMetadata" (lakekeeper#1376) * chore(deps): update dependency node to v22 (lakekeeper#1373) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat(authz)!: extend OpenFGA tabular entities with WarehouseId (lakekeeper#1329) --------- Co-authored-by: Christian <[email protected]> Co-authored-by: Christian Thiel <[email protected]> * feat: Add support for tasks affecting views (lakekeeper#1378) * feat(authz): Add specific Task Actions (lakekeeper#1379) * chore(tests): Test with Iceberg 1.9.2 & 1.10.0 (lakekeeper#1267) * feat: Enrich task metadata with concrete tabular type (lakekeeper#1383) * feat: Add loadTable Snapshots filter (lakekeeper#1385) * feat: add endpoint for fuzzy search of tabulars (lakekeeper#1387) * feat: Update UI to 0.10.0 (lakekeeper#1390) * feat(ui): Update UI to 0.10.1 * chore: Use lakekeeper re-exports in bin (lakekeeper#1391) * fix(tabular-search): distance and docs for `searchterm is uuid` (lakekeeper#1393) * chore(examples): Idempotent bucket creation in minimal example (lakekeeper#1386) In the case where you already have a bucket created, like the "examples" bucket, I ran into an issue where the createbuckets service fails, and this prevents lakekeeper from starting back up. This fix adds a simple minio flag to ignore buckets that already exist, making things even more user friendly * feat: Make number of workers spawned for Expiration & Purge configurable (lakekeeper#1395) * chore: release main (lakekeeper#1295) * chore: added gif to readme (lakekeeper#1396) * chore: remove unneded `#[allow(dead_code)]` (lakekeeper#1399) * fix: Use FnOnce for queue & service registration * Revert "fix: Use FnOnce for queue & service registration" This reverts commit 47b03a0. * chore(docs): Add 0.10 docs * perf(db): remove `join namespace` from `active_tabulars` view (lakekeeper#1401) * doc(db): how to connect to db and inspect schema (lakekeeper#1402) * feat: implement `OpenFgaEntity` for `ServerId` (lakekeeper#1394) * impl OpenFgaEntity * Use the implementation * fix: Use FnOnce for queue & service registration (lakekeeper#1404) * chore(deps): update dependency mkdocs-material to v9.6.21 (lakekeeper#1406) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat: Expose client-managed X-Iceberg-Access-Delegation (lakekeeper#1407) * fix: Use higher consistency for some OpenFGA queries (lakekeeper#1408) * feat: Improve Kubernetes Auth docs (lakekeeper#1415) * chore: release 0.10.1 Release-As: 0.10.1 * fix: Endpoint stats for Project Endpoints (lakekeeper#1412) * feat: Add create table guard to cleanup location on Failure (lakekeeper#1418) * chore: Generate ID types with Macro (lakekeeper#1419) * chore: Re-Export Tokio from lakekeeper-io create (lakekeeper#1420) * fix: Add support for `write.metadata.metrics.` Table Properties (lakekeeper#1422) * fix: Update UI to 0.10.2 (lakekeeper#1423) * chore: release main (lakekeeper#1403) * fix: Parse empty ProjectID headers as None (lakekeeper#1424) * chore: release 0.10.2 Release-As: 0.10.2 * chore: release main (lakekeeper#1425) * feat: Add `debug_migrate_before_serve` env var (lakekeeper#1426) * feat: Move OpenFGA Authorizer to separate crate (lakekeeper#1421) * chore(renovate): Group dependencies * chore(renovate): ignore additional deps * chore: Rename src/service -> src/server, trait Catalog -> CatalogStore (lakekeeper#1428) * feat(examples): add k8s iceberg sink connector (avro) (lakekeeper#1336) --------- Co-authored-by: Christian <[email protected]> * chore(ci): Fix release please (lakekeeper#1433) * feat: Expose License Information via API (lakekeeper#1432) * fix(deps): update all non-major dependencies (lakekeeper#1429) * chore(ci): Remove mgmt API version update via release-please * chore: Restructure catalog_store into multiple modules (lakekeeper#1434) * feat: Validate Downscoping works on Warehouse creation (lakekeeper#1437) * chore(ci): Fix release please * docs: Add info about installing sqlx to developer-guide.md (lakekeeper#1438) * docs: Update developer-guide.md (lakekeeper#1439) * chore(deps): update all non-major dependencies (lakekeeper#1436) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix: Better normalization for ARNs in S3 Profile (lakekeeper#1441) * chore(deps): update all non-major dependencies (lakekeeper#1442) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(main): release 0.10.3 (lakekeeper#1427) * fix: Release Please CI outputs * fix(ci): Revert 0.10.3 release * chore(main): release 0.10.3 (lakekeeper#1446) * feat: Introduce CatalogWarehouseOps & CatalogNamespaceOps abstractions (lakekeeper#1440) * feat: Allow x-user-agent header (lakekeeper#1453) * feat: Table & View Ops Abstractions, Improved Error Handling (lakekeeper#1454) * fix: CORS allow access delegation & etag headers (lakekeeper#1455) * fix: Headers should be lowercase (lakekeeper#1457) * chore(tests): Add trino information_schema.tables test (lakekeeper#1456) * chore: Introduce open-api feature to gate utoipa and swagger (lakekeeper#1458) * chore: Release As 0.11 * fix: Debug assertion table identifier mismatch for signer (lakekeeper#1460) * feat: Caching Short-Term-Credentials (STC) (lakekeeper#1459) * feat: Warehouse Cache (lakekeeper#1462) * chore(deps): update actions/setup-node action to v6 (lakekeeper#1443) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat: Version based Warehouse Cache (lakekeeper#1465) * feat: AuthZ Server and Project Ops (lakekeeper#1471) * chore(deps): update github artifact actions (lakekeeper#1461) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore: Rename release branch pattern to rel-* * feat: Catalog returns full Namespace Hierarchy for nested Namespaces (lakekeeper#1472) --------- Co-authored-by: Christian <[email protected]> Co-authored-by: Christian Thiel <[email protected]> Co-authored-by: Dao Thanh Tung <[email protected]> Co-authored-by: Moritz Zielke <[email protected]> Co-authored-by: Baptiste Gouhoury <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Dolan Antenucci <[email protected]> Co-authored-by: Anatoly Popov <[email protected]> Co-authored-by: Andre Luis Anastacio <[email protected]> Co-authored-by: Scott Haines <[email protected]> Co-authored-by: Viktor Kessler <[email protected]> Co-authored-by: Yohan Valencia <[email protected]> Co-authored-by: Paul Roman <[email protected]>
Closes: #1273
Summary by CodeRabbit