Repository navigation
feat: add endpoint for fuzzy search of tabulars - #1387
Conversation
WalkthroughAdds a management v1 POST endpoint for tabular search and implements auth-aware fuzzy/UUID search in Postgres, updates Catalog trait and Postgres implementations, changes tabular SQL to persist namespace names, adds a DB migration (column, FK, function, GIST trigram index), updates OpenAPI, and reorganizes workspace/build dependencies. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Client
participant ApiServer
participant Authorizer
participant Catalog
participant PostgresDB as Postgres DB
Client->>ApiServer: POST /management/v1/warehouse/{wid}/search-tabular {search}
par Parallel auth checks
ApiServer->>Authorizer: is_allowed(CanUse, wid)
ApiServer->>Authorizer: is_allowed(CanListEverything, wid)
end
alt Not authorized
Authorizer-->>ApiServer: deny
ApiServer-->>Client: 403
else Authorized
ApiServer->>Catalog: search_tabular(wid, search)
Catalog->>PostgresDB: SQL (UUID exact OR GIST trigram fuzzy using tabular_namespace_name)
PostgresDB-->>Catalog: rows {tabular_namespace_name[], name, id, type, dist}
Catalog-->>ApiServer: SearchTabularResponse
opt Per-item filtering
ApiServer->>Authorizer: CanIncludeInList for each item (if required)
Authorizer-->>ApiServer: allow/deny per item
ApiServer->>ApiServer: filter + sort by dist (NaN last)
end
ApiServer-->>Client: 200 {tabulars:[...]}
end
note over PostgresDB: Uses new column `tabular_namespace_name`, FK, concat func, and GIST trigram index
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (1)
🧰 Additional context used🧠 Learnings (4)📚 Learning: 2025-09-28T15:03:22.071ZApplied to files:
📚 Learning: 2025-09-18T16:16:50.743ZApplied to files:
📚 Learning: 2025-09-05T15:17:37.543ZApplied to files:
📚 Learning: 2025-09-18T16:16:50.743ZApplied to files:
⏰ 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). (10)
🔇 Additional comments (1)
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.
Actionable comments posted: 9
🧹 Nitpick comments (7)
docs/docs/api/management-open-api.yaml (2)
2004-2009: Use plural and align naming (nit).Prefer “Search Tabulars” for consistency with other list/search summaries.
- summary: Search tabular + summary: Search Tabulars
4244-4246: Correct ID description and add UUID format.This schema represents a tabular, not a user; also add format for client generators.
id: type: string - description: ID of the user + format: uuid + description: ID of the tabularcrates/lakekeeper/migrations/20250923164029_fuzzy_tabular_search.sql (3)
38-45: Make concat robust for empty namespaces and clarify immutability note.Avoid leading “.table” when namespace_name is empty; the current function yields a leading dot. Also, the comment about array_to_string not being immutable is misleading; wrapping is fine for reuse, but immutability isn’t the blocker.
--- a/crates/lakekeeper/migrations/20250923164029_fuzzy_tabular_search.sql +++ b/crates/lakekeeper/migrations/20250923164029_fuzzy_tabular_search.sql --- `array_to_string` is not `immutable` so it can't be used directly for the index. --- Moreover, having the concat logic in a function allows re-using it queries constructed in Rust. +-- Wrap concat logic in a function for reuse in queries and index expression. CREATE OR REPLACE FUNCTION concat_namespace_name_tabular_name(nsn text[], tn text) RETURNS text LANGUAGE sql IMMUTABLE AS $$ - SELECT array_to_string(nsn, '.') || '.' || tn; + SELECT CASE + WHEN array_length(nsn, 1) IS NULL THEN tn + ELSE array_to_string(nsn, '.') || '.' || tn + END; $$;
46-54: Decide on case-insensitive matching now (optional).pg_trgm comparisons are case-sensitive. If you want case-insensitive search, normalize in the function (lower both nsn parts and tn) so the index and query align.
- CREATE OR REPLACE FUNCTION concat_namespace_name_tabular_name(nsn text[], tn text) + CREATE OR REPLACE FUNCTION concat_namespace_name_tabular_name(nsn text[], tn text) @@ - SELECT CASE - WHEN array_length(nsn, 1) IS NULL THEN tn - ELSE array_to_string(nsn, '.') || '.' || tn - END; + SELECT CASE + WHEN array_length(nsn, 1) IS NULL THEN lower(tn) + ELSE lower(array_to_string(nsn, '.')) || '.' || lower(tn) + END;Follow-up: also lower the search term before passing it to SQL, or let SQL lower($2).
49-54: Reconsider GIST trigram signature length (siglen=256).A larger siglen increases index size and write cost. Unless you’ve measured benefits, default siglen is typically sufficient.
Can you confirm the expected index size and write amplification with 256 vs default in your datasets? If not required, consider dropping the parameter to use the default:
- concat_namespace_name_tabular_name(namespace_name, name) - gist_trgm_ops(siglen=256) + concat_namespace_name_tabular_name(namespace_name, name) + gist_trgm_opscrates/lakekeeper/src/api/management/v1/tabular.rs (2)
126-126: Remove outdated TODOUUID handling is implemented in the catalog layer; this TODO is no longer applicable.
130-135: Doc inconsistency: truncation note without implementationAfter applying truncation above, the comment becomes accurate. If not, adjust the doc to remove the truncation claim.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (11)
.sqlx/query-17e2c2187af51d51d7657029586aed05b609ea1d730b07fd373ba6e20aef8bd6.jsonis excluded by!.sqlx/**.sqlx/query-3f118743d59e0e035f57c9106816533c092fead83b8420cdab3149b040664910.jsonis excluded by!.sqlx/**.sqlx/query-59163d9d440b41f8d3fa8443ac6e919afc66ae1d0598b1918908f32e8478172f.jsonis excluded by!.sqlx/**.sqlx/query-62b9aeb0ed103e7f63a42f246d713b7727307c032df2c983e7ab8a72d569ddb1.jsonis excluded by!.sqlx/**.sqlx/query-6eb81444b25f070f01777ccbbc5f7b662bb3ed494b55616479cd36c66694f968.jsonis excluded by!.sqlx/**.sqlx/query-7b40d84dc2cdc22a9b3b97debfcc4a4bfe807200435942ced6e57171059d02ec.jsonis excluded by!.sqlx/**.sqlx/query-84b5551ecb00daf7d0ef0404fa1c66a56bbb45f7779d1af62ca58552f04525c8.jsonis excluded by!.sqlx/**.sqlx/query-90293c557c0bf07228d1eb5dc74ec9e818a359bf80dd717964c2638ce53c4447.jsonis excluded by!.sqlx/**.sqlx/query-c41387fa45280c02a0fd7e0c18f34340846c3ccfc058f4537bd1d5788cf19b8e.jsonis excluded by!.sqlx/**.sqlx/query-d56116f1e5ace78c3e5ee372c06fd8a840d69d32b5924be96d55d9f8e1b94156.jsonis excluded by!.sqlx/**.sqlx/query-d8db042dc4afaf3def7a90abcf7baf2291d528abb5d0df55240bc4c8e4202d56.jsonis excluded by!.sqlx/**
📒 Files selected for processing (12)
Cargo.toml(4 hunks)crates/lakekeeper/Cargo.toml(1 hunks)crates/lakekeeper/migrations/20250923164029_fuzzy_tabular_search.sql(1 hunks)crates/lakekeeper/src/api/endpoints.rs(1 hunks)crates/lakekeeper/src/api/management/mod.rs(6 hunks)crates/lakekeeper/src/api/management/v1/tabular.rs(1 hunks)crates/lakekeeper/src/implementations/postgres/catalog.rs(3 hunks)crates/lakekeeper/src/implementations/postgres/tabular/mod.rs(5 hunks)crates/lakekeeper/src/implementations/postgres/tabular/table/mod.rs(3 hunks)crates/lakekeeper/src/service/authz/implementations/openfga/migration/migration_fns_v4.rs(2 hunks)crates/lakekeeper/src/service/catalog.rs(2 hunks)docs/docs/api/management-open-api.yaml(2 hunks)
🧰 Additional context used
🧠 Learnings (2)
📚 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-18T16:16:50.743Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1254
File: .sqlx/query-cc971caec9f8981502e9ea21682482378d65cee50c8017bf251256fa7085053a.json:3-3
Timestamp: 2025-09-18T16:16:50.743Z
Learning: In the lakekeeper database schema, the namespace.namespace_name column is defined as `Text [] collate "case_insensitive"` (a PostgreSQL text array) that stores namespace name segments. Queries comparing `n.namespace_name = $1` where $1 is TextArray are valid array-to-array equality checks, not type mismatches.
Applied to files:
crates/lakekeeper/migrations/20250923164029_fuzzy_tabular_search.sql
🧬 Code graph analysis (5)
crates/lakekeeper/src/service/catalog.rs (4)
crates/lakekeeper/src/implementations/postgres/tabular/mod.rs (1)
search_tabular(570-634)crates/lakekeeper/src/api/management/v1/tabular.rs (1)
search_tabular(24-127)crates/lakekeeper/src/api/management/mod.rs (1)
search_tabular(1177-1186)crates/lakekeeper/src/implementations/postgres/catalog.rs (1)
search_tabular(645-651)
crates/lakekeeper/src/implementations/postgres/catalog.rs (3)
crates/lakekeeper/src/implementations/postgres/tabular/mod.rs (1)
search_tabular(570-634)crates/lakekeeper/src/service/catalog.rs (1)
search_tabular(813-817)crates/lakekeeper/src/api/management/v1/tabular.rs (1)
search_tabular(24-127)
crates/lakekeeper/src/api/management/mod.rs (4)
crates/lakekeeper/src/implementations/postgres/tabular/mod.rs (1)
search_tabular(570-634)crates/lakekeeper/src/api/management/v1/tabular.rs (1)
search_tabular(24-127)crates/lakekeeper/src/implementations/postgres/catalog.rs (1)
search_tabular(645-651)crates/lakekeeper/src/service/catalog.rs (1)
search_tabular(813-817)
crates/lakekeeper/src/implementations/postgres/tabular/mod.rs (6)
crates/lakekeeper/src/api/management/v1/tabular.rs (1)
search_tabular(24-127)crates/lakekeeper/src/implementations/postgres/catalog.rs (1)
search_tabular(645-651)crates/lakekeeper/src/service/catalog.rs (2)
search_tabular(813-817)transaction(90-90)crates/lakekeeper/src/implementations/postgres/user.rs (2)
sqlx(112-149)sqlx(248-268)crates/lakekeeper/src/implementations/postgres/warehouse.rs (1)
initialize_warehouse(761-810)crates/lakekeeper/src/implementations/postgres/namespace.rs (1)
initialize_namespace(677-704)
crates/lakekeeper/src/api/management/v1/tabular.rs (4)
crates/lakekeeper/src/implementations/postgres/tabular/mod.rs (6)
search_tabular(570-634)from(800-805)from(809-814)from(1081-1086)from(1090-1095)from(1099-1104)crates/lakekeeper/src/api/management/mod.rs (2)
search_tabular(1177-1186)from(1650-1655)crates/lakekeeper/src/implementations/postgres/catalog.rs (1)
search_tabular(645-651)crates/lakekeeper/src/service/authz/mod.rs (2)
require_warehouse_action(788-809)is_allowed_warehouse_action(350-363)
⏰ 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). (7)
- GitHub Check: tests (spark_adls-1.9.2) / spark_adls-1.9.2
- GitHub Check: tests (spark_aws_sts-1.9.2) / spark_aws_sts-1.9.2
- GitHub Check: tests (spark_adls-1.8.0) / spark_adls-1.8.0
- GitHub Check: tests (spark_gcs-1.10.0) / spark_gcs-1.10.0
- GitHub Check: tests (spark_gcs-1.8.0) / spark_gcs-1.8.0
- GitHub Check: tests (spark_aws_remote_signing-1.10.0) / spark_aws_remote_signing-1.10.0
- GitHub Check: tests (spark_aws_sts-1.7.1) / spark_aws_sts-1.7.1
🔇 Additional comments (21)
crates/lakekeeper/src/service/authz/implementations/openfga/migration/migration_fns_v4.rs (1)
11-11: Serialize derive makes TabularType wire-readyImport looks good and the new
Serializederive cleanly unlocks JSON responses for the tabular search surface; nothing else required here.Also applies to: 311-315
crates/lakekeeper/Cargo.toml (1)
121-125: LGTM - Consolidates duplicate build dependencies.The changes properly consolidate the duplicate
openssl-srcbuild dependency definition into a single location, maintaining the exact same configuration (version, features, and conditional nature). This improves maintainability and eliminates redundancy.Cargo.toml (2)
18-157: Dependency versions look good - latest stable releases.From the search results, I can confirm the major dependency versions are current:
- tokio: 1.41 (workspace) vs latest 1.47.1 - reasonably current, within 6 versions
- serde: ^1.0 - correct, latest stable branch
- uuid: ^1.6 - current, latest stable branch
- utoipa: 5.4.0 - confirmed as latest version
The dependency expansion looks comprehensive and appropriate for the new fuzzy search functionality. All versions appear to be reasonably current stable releases.
18-157: Dependencies are up-to-date
- tokio ^1.41 → 1.47.1
- serde ^1.0 → 1.0.227
- uuid ^1.6 → 1.18.1
- utoipa 5.4.0 is latest
No changes required.
crates/lakekeeper/src/service/catalog.rs (2)
32-32: LGTM - Clean import addition.The import for
SearchTabularResponseis properly placed and aligns with the new tabular search functionality being added.
813-818: LGTM - Well-defined async trait method.The new
search_tabularmethod follows consistent patterns with other catalog methods:
- Uses warehouse scoping for security
- Takes a search term string parameter
- Returns the appropriate response type
- Uses the catalog state parameter correctly
The method signature and documentation are clear and appropriate.
crates/lakekeeper/src/implementations/postgres/tabular/table/mod.rs (3)
676-677: LGTM - Efficient SQL optimization.The change from a JOIN-based namespace resolution to directly using
ti.namespace_nameeliminates an unnecessary JOIN to the namespace table. This is a good optimization that reduces query complexity while maintaining the same functionality. Based on learnings, the warehouse scoping through composite keys ensures proper data isolation.Based on learnings
882-882: LGTM - Consistent SQL optimization pattern.Same optimization as above - using direct namespace_name field access instead of JOIN. The pattern is applied consistently across multiple query locations.
949-949: LGTM - Consistent SQL optimization continues.The pattern of replacing JOIN-based namespace resolution with direct field access is applied consistently throughout all queries.
crates/lakekeeper/src/api/endpoints.rs (1)
212-212: LGTM - Properly integrated new endpoint.The new
SearchTabularendpoint is correctly:
- Added to the ManagementV1 enum with proper HTTP method (POST) and path
- Follows the existing naming and routing conventions
- Will be automatically included in all trait implementations due to the macro generation
- Uses the correct warehouse-scoped path pattern
The endpoint integration looks complete and follows established patterns.
crates/lakekeeper/src/implementations/postgres/catalog.rs (3)
36-37: LGTM: public type exposure for SearchTabularResponse.Import matches usage and aligns with other Search* responses.
52-54: LGTM: delegate import wired.Importing tabular::search_tabular mirrors existing search_user/role patterns.
645-651: LGTM: simple delegation with read pool.Method matches trait signature and reuses the read_pool executor correctly.
crates/lakekeeper/src/api/management/mod.rs (4)
11-11: Module exposure looks goodExporting the v1 tabular module here is appropriate.
39-39: Good: wires TabularManagementServiceBrings the service into scope for the new endpoint.
141-142: OpenAPI paths updatedIncluding search_tabular in the documented paths is correct.
1161-1186: Endpoint shape and auth integration LGTMThe endpoint signature, auth extraction, and delegation to ApiServer are consistent with existing patterns.
crates/lakekeeper/src/implementations/postgres/tabular/mod.rs (4)
22-26: Re-exports for API types are OKImporting SearchTabular/SearchTabularResponse and ProtectionResponse here is appropriate for DB-layer shaping.
379-383: Insert namespace_name at creation is sensibleDenormalizing namespace_name into tabular at insert time simplifies search/list queries.
468-501: List query adjustments align with denormalizationUsing t.namespace_name and keeping namespace_id filter preserves correctness while avoiding an extra join for name resolution.
1380-1500: Tests cover fuzzy and UUID search pathsGood coverage for best-match ordering and UUID exact match.
Consider adding a test asserting that soft-deleted/staged tabulars are excluded from search results once the filters are added.
|
@CodeRabbit review |
✅ Actions performedReview triggered.
|
|
@CodeRabbit review. Also re-check if all comments are resolved, approve if they are. |
🧩 Analysis chain@c-thiel I'll review the changes and check the comment resolution status for you. Based on my analysis of PR #1387, this appears to be a well-structured implementation of fuzzy search functionality for tabulars. Here are the key observations: Positive aspects:
Areas that could be improved:
Technical implementation:
The code appears to be production-ready with good practices followed throughout. Once you address the TODO item mentioned in the PR description, this should be ready for merge. 🏁 Script executed: Length of output: 914 🏁 Script executed: Length of output: 2036 @c-thiel I can see that there are currently unresolved change requests on this PR that need to be addressed before I can approve it. Current Status:
What needs to happen:
To proceed, please:
The PR cannot be approved in its current state due to the outstanding change requests. Once you've addressed the feedback, I'll be happy to re-review and approve if everything looks good. 🏁 Script executed: Length of output: 487 🏁 Script executed: Length of output: 1419 🏁 Script executed: Length of output: 19733 🏁 Script executed: Length of output: 3503 🏁 Script executed: Length of output: 396 @c-thiel I've reviewed the current state of the PR against the previous change requests. Here's the status: ✅ Issues Resolved:
❌ Issues Still Outstanding:
CREATE OR REPLACE FUNCTION concat_namespace_name_tabular_name(nsn text[], tn text)
RETURNS text
LANGUAGE sql
IMMUTABLE
AS $$
SELECT CASE
WHEN array_length(nsn, 1) IS NULL THEN tn
ELSE array_to_string(nsn, '.') || '.' || tn
END;
$$;
Next Steps:Please address these remaining issues, then I can approve the PR. The core functionality looks solid, but these outstanding change requests need to be resolved first. Cannot approve until the above issues are fixed. Once you've made these changes, please ask me to review again. ✅ Actions performedReview triggered.
|
|
@CodeRabbit review |
✅ Actions performedReview triggered.
|
There was a problem hiding this comment.
Actionable comments posted: 3
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (8)
.sqlx/query-14497cd60b6a7723a948ddce5c8a92ae2f3685c79ccb1309c2ec5153bc25aac1.jsonis excluded by!.sqlx/**.sqlx/query-182e8c64d4e06fdf12909937894cdb9fa071627f107e9c4b1360af2314ce10c6.jsonis excluded by!.sqlx/**.sqlx/query-5027867e84685784187edf189b8f38784305cf9fdb2e0720288095c2f03a00aa.jsonis excluded by!.sqlx/**.sqlx/query-9cd60f1f222097a90cd84db75db1e2264455b3d409bf5d2a42ca3f549227b5fa.jsonis excluded by!.sqlx/**.sqlx/query-a31d903565784cb0b87fe7cd1f0402774769a328b43acafcc85d08760387744d.jsonis excluded by!.sqlx/**.sqlx/query-a880a441be7d105a5ca69ede21d38c3368cbd647d6f47411d8c2a483a4e780b8.jsonis excluded by!.sqlx/**.sqlx/query-a88ad5c84ce269d23a2150154faa5b8d6555314505b65334733d09c1ba772b12.jsonis excluded by!.sqlx/**.sqlx/query-f93e9b496ef70f26c64b192a3def80b7b9c322fd5be4a923dae7c3f7a36a2c13.jsonis excluded by!.sqlx/**
📒 Files selected for processing (7)
crates/lakekeeper/migrations/20250923164029_fuzzy_tabular_search.sql(1 hunks)crates/lakekeeper/src/api/management/mod.rs(6 hunks)crates/lakekeeper/src/api/management/v1/tabular.rs(1 hunks)crates/lakekeeper/src/implementations/postgres/tabular/mod.rs(6 hunks)crates/lakekeeper/src/implementations/postgres/tabular/table/mod.rs(3 hunks)crates/lakekeeper/src/service/tabular_idents.rs(1 hunks)docs/docs/api/management-open-api.yaml(2 hunks)
🚧 Files skipped from review as they are similar to previous changes (3)
- docs/docs/api/management-open-api.yaml
- crates/lakekeeper/src/api/management/mod.rs
- crates/lakekeeper/src/implementations/postgres/tabular/table/mod.rs
🧰 Additional context used
🧠 Learnings (9)
📚 Learning: 2025-08-26T12:59:36.239Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1307
File: Cargo.toml:94-94
Timestamp: 2025-08-26T12:59:36.239Z
Learning: The derive_more::Debug derive macro is used in crates/lakekeeper/src/serve.rs in the syntax `#[derive(derive_more::Debug, typed_builder::TypedBuilder)]` on the ServeConfiguration struct. When searching for derive_more::Debug usage, need to use broader patterns that catch multi-trait derive macros.
Applied to files:
crates/lakekeeper/src/service/tabular_idents.rs
📚 Learning: 2025-09-25T06:54:15.168Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1378
File: crates/lakekeeper/src/api/management/v1/warehouse/undrop.rs:51-53
Timestamp: 2025-09-25T06:54:15.168Z
Learning: In the lakekeeper codebase, when iterating over &[TabularId] and pattern matching TabularId::View(id), the id variable has type &ViewId. Using *id correctly dereferences to get ViewId, which can be passed directly to authorization methods that expect ViewId parameters.
Applied to files:
crates/lakekeeper/src/service/tabular_idents.rs
📚 Learning: 2025-08-26T12:59:36.239Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1307
File: Cargo.toml:94-94
Timestamp: 2025-08-26T12:59:36.239Z
Learning: The derive_more::Debug derive macro is used in crates/lakekeeper/src/serve.rs on line 92 in the syntax `#[derive(derive_more::Debug, typed_builder::TypedBuilder)]` on the ServeConfiguration struct. When searching for derive_more::Debug usage, need to use broader patterns that catch multi-trait derive macros, not just exact module path matches.
Applied to files:
crates/lakekeeper/src/service/tabular_idents.rs
📚 Learning: 2025-09-18T16:16:50.743Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1254
File: .sqlx/query-cc971caec9f8981502e9ea21682482378d65cee50c8017bf251256fa7085053a.json:3-3
Timestamp: 2025-09-18T16:16:50.743Z
Learning: In the lakekeeper database schema, the namespace.namespace_name column is defined as `Text [] collate "case_insensitive"` (a PostgreSQL text array) that stores namespace name segments. Queries comparing `n.namespace_name = $1` where $1 is TextArray are valid array-to-array equality checks, not type mismatches.
Applied to files:
crates/lakekeeper/migrations/20250923164029_fuzzy_tabular_search.sql
📚 Learning: 2025-09-05T15:17:37.543Z
Learnt from: mooori
PR: lakekeeper/lakekeeper#1254
File: .sqlx/query-7ebda80ee60f12b9723e555f1d146e815a906481dd28c2986ec11cb1185b00aa.json:0-0
Timestamp: 2025-09-05T15:17:37.543Z
Learning: When reviewing .sqlx query descriptors in PRs with focused scope (like adding warehouse_id for multi-warehouse support), defer query optimization suggestions to follow-up issues if the existing pattern was functional before the changes, even if the query structure could be improved.
Applied to files:
crates/lakekeeper/src/implementations/postgres/tabular/mod.rs
📚 Learning: 2025-09-28T11:52:19.782Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1387
File: crates/lakekeeper/src/api/management/v1/tabular.rs:142-153
Timestamp: 2025-09-28T11:52:19.782Z
Learning: In the lakekeeper codebase, Postgres uses REAL (f32) type for distance values in fuzzy search, not DOUBLE PRECISION (f64).
Applied to files:
crates/lakekeeper/src/implementations/postgres/tabular/mod.rscrates/lakekeeper/src/api/management/v1/tabular.rs
📚 Learning: 2025-09-28T11:51:44.021Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1387
File: crates/lakekeeper/src/implementations/postgres/tabular/mod.rs:595-600
Timestamp: 2025-09-28T11:51:44.021Z
Learning: PostgreSQL's trigram distance operator '<->' returns the 'real' data type (4-byte single-precision float), which corresponds to f32 in Rust, not f64 (double precision).
Applied to files:
crates/lakekeeper/src/implementations/postgres/tabular/mod.rscrates/lakekeeper/src/api/management/v1/tabular.rs
📚 Learning: 2025-09-28T11:51:44.021Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1387
File: crates/lakekeeper/src/implementations/postgres/tabular/mod.rs:595-600
Timestamp: 2025-09-28T11:51:44.021Z
Learning: PostgreSQL's trigram distance operator '<->' returns the 'real' data type (4-byte floating point), which corresponds to f32 in Rust, not f64 (double precision).
Applied to files:
crates/lakekeeper/src/implementations/postgres/tabular/mod.rscrates/lakekeeper/src/api/management/v1/tabular.rs
📚 Learning: 2025-09-04T15:53:09.396Z
Learnt from: mooori
PR: lakekeeper/lakekeeper#1254
File: .sqlx/query-76e03d470bb4221068d84e458d034c46a91ee9ae560f27ab3c782345f27d0668.json:0-0
Timestamp: 2025-09-04T15:53:09.396Z
Learning: When reviewing PRs with focused scope (like adding warehouse_id to enable multi-warehouse support), avoid suggesting refactors of pre-existing code patterns that weren't introduced by the PR. Respect the PR's boundaries and suggest follow-up issues for unrelated improvements instead.
Applied to files:
crates/lakekeeper/src/implementations/postgres/tabular/mod.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). (6)
- GitHub Check: docker / docker
- GitHub Check: docker / docker
- GitHub Check: docker / docker
- GitHub Check: test
- GitHub Check: sqlx-check
- GitHub Check: docker / docker
|
@CodeRabbit review |
✅ Actions performedReview triggered.
|
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (8)
crates/lakekeeper/src/api/management/v1/role.rs (1)
272-274: Avoid scanning the whole string before truncatingCounting all scalars just to find out whether we overflow forces a full pass over the input and then allocates a fresh
String. We can stay Unicode-safe and keep the work bounded by reusing the original buffer: jump straight to the 65th code point, grab its byte index, and truncate in place.- if search.chars().count() > 64 { - search = search.chars().take(64).collect(); - } + if let Some((idx, _)) = search.char_indices().nth(64) { + search.truncate(idx); + }crates/lakekeeper/src/api/management/v1/user.rs (2)
171-176: Expose the 64-char cap in OpenAPI schemaAdd a max_length hint so clients see the limit in docs and generated SDKs.
#[derive(Debug, Deserialize, utoipa::ToSchema)] pub struct SearchUserRequest { /// Search string for fuzzy search. /// Length is truncated to 64 characters. + #[schema(max_length = 64)] pub search: String, }
323-327: DRY: extract a shared helper for truncation
search_userand tabular search both perform the same 64‑char Unicode truncation. Consider a smallfn truncate_to_chars(s: String, max: usize) -> Stringin a common module to keep behavior consistent.crates/lakekeeper/src/api/management/v1/tabular.rs (3)
110-121: Make sorting total and deterministic (handle NaN explicitly)
partial_cmp(...).unwrap_or(Greater)can yield inconsistent ordering when NaN slips in. Prefer a total order usingf32::total_cmpand explicitNonehandling.- // sort `f32` by treating NaN as greater than any number - authorized_tabulars.sort_by(|a, b| { - a.distance - .partial_cmp(&b.distance) - .unwrap_or(std::cmp::Ordering::Greater) - }); + // Total order: None < Some, and use total_cmp for deterministic float ordering + authorized_tabulars.sort_by(|a, b| match (a.distance, b.distance) { + (Some(x), Some(y)) => x.total_cmp(&y), + (None, Some(_)) => std::cmp::Ordering::Less, + (Some(_), None) => std::cmp::Ordering::Greater, + (None, None) => std::cmp::Ordering::Equal, + });
143-154: Clarify distance semantics; optionally hide when absentConsider tightening the docs to state what
Nonemeans (e.g., UUID/exact matches). Optionally skip serializing it when absent.pub struct SearchTabular { @@ - /// Better matches have a lower distance - pub distance: Option<f32>, + /// Fuzzy match distance (smaller is better, exact ≈ 0.0). `None` for non-fuzzy matches. + #[serde(skip_serializing_if = "Option::is_none")] + pub distance: Option<f32>, }[Based on learnings]
50-55: Reuse a shared Unicode truncation helperSame suggestion as for users: extract a shared helper to avoid drift across endpoints.
crates/lakekeeper/migrations/20250923164029_fuzzy_tabular_search.sql (2)
44-47: Handle both NULL and empty namespaces explicitly
array_length(nsn, 1)can be NULL for empty arrays; being explicit about emptiness improves readability and robustness.- SELECT CASE - WHEN array_length(nsn, 1) IS NULL THEN tn - ELSE array_to_string(nsn, '.') || '.' || tn - END; + SELECT CASE + WHEN COALESCE(cardinality(nsn), 0) = 0 THEN tn + ELSE array_to_string(nsn, '.') || '.' || tn + END;
53-60: Operational note: consider CONCURRENTLY for large tablesIf
tabularis large and your migration framework allows non-transactional DDL,CREATE INDEX CONCURRENTLYcan reduce write blocking. If migrations run in a single transaction, keep as-is.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
crates/lakekeeper/migrations/20250923164029_fuzzy_tabular_search.sql(1 hunks)crates/lakekeeper/src/api/management/v1/role.rs(1 hunks)crates/lakekeeper/src/api/management/v1/tabular.rs(1 hunks)crates/lakekeeper/src/api/management/v1/user.rs(1 hunks)
🧰 Additional context used
🧠 Learnings (4)
📚 Learning: 2025-09-18T16:16:50.743Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1254
File: .sqlx/query-cc971caec9f8981502e9ea21682482378d65cee50c8017bf251256fa7085053a.json:3-3
Timestamp: 2025-09-18T16:16:50.743Z
Learning: In the lakekeeper database schema, the namespace.namespace_name column is defined as `Text [] collate "case_insensitive"` (a PostgreSQL text array) that stores namespace name segments. Queries comparing `n.namespace_name = $1` where $1 is TextArray are valid array-to-array equality checks, not type mismatches.
Applied to files:
crates/lakekeeper/migrations/20250923164029_fuzzy_tabular_search.sql
📚 Learning: 2025-09-28T11:52:19.782Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1387
File: crates/lakekeeper/src/api/management/v1/tabular.rs:142-153
Timestamp: 2025-09-28T11:52:19.782Z
Learning: In the lakekeeper codebase, Postgres uses REAL (f32) type for distance values in fuzzy search, not DOUBLE PRECISION (f64).
Applied to files:
crates/lakekeeper/src/api/management/v1/tabular.rs
📚 Learning: 2025-09-28T11:51:44.021Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1387
File: crates/lakekeeper/src/implementations/postgres/tabular/mod.rs:595-600
Timestamp: 2025-09-28T11:51:44.021Z
Learning: PostgreSQL's trigram distance operator '<->' returns the 'real' data type (4-byte floating point), which corresponds to f32 in Rust, not f64 (double precision).
Applied to files:
crates/lakekeeper/src/api/management/v1/tabular.rs
📚 Learning: 2025-09-28T11:51:44.021Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1387
File: crates/lakekeeper/src/implementations/postgres/tabular/mod.rs:595-600
Timestamp: 2025-09-28T11:51:44.021Z
Learning: PostgreSQL's trigram distance operator '<->' returns the 'real' data type (4-byte single-precision float), which corresponds to f32 in Rust, not f64 (double precision).
Applied to files:
crates/lakekeeper/src/api/management/v1/tabular.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). (10)
- GitHub Check: docker / docker
- GitHub Check: docker / docker
- GitHub Check: docker / docker
- GitHub Check: docker / docker
- GitHub Check: security_audit
- GitHub Check: test
- GitHub Check: check-generated-openapi-matches
- GitHub Check: openfga
- GitHub Check: clippy
- GitHub Check: sqlx-check
🔇 Additional comments (4)
crates/lakekeeper/src/api/management/v1/user.rs (1)
323-327: Unicode-safe truncation: good fixSwitching to character-based truncation avoids UTF‑8 boundary panics. Looks correct.
crates/lakekeeper/src/api/management/v1/tabular.rs (3)
33-48: AuthZ join pattern looks solidParallelizing the warehouse checks with
tokio::join!is fine here; the error mapping onrequire_warehouse_actionkeeps responses clear.
50-55: Good: Unicode-aware 64-char capSame safe truncation pattern as users; consistent with docs.
76-108: I’ve requested the implementations of both default and OpenFGA-backed batch authz methods to verify if they preserve input ordering.
|
@CodeRabbit review |
✅ Actions performedReview triggered.
|
✅ 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]>
#1287
TODO
ApiServer::search_tabular?Summary by CodeRabbit
New Features
Documentation
Migrations
Bug Fix / UX
Chores