From 0d191622f33b98e51a5f71075f085160e1f0681e Mon Sep 17 00:00:00 2001 From: Shefeek Jinnah Date: Wed, 23 Sep 2026 17:13:13 +0530 Subject: [PATCH] chore(deps): bump hotdata SDK to 0.19.0 0.19.0 makes constant_per_key a required field on TableInfo. The server already sends it, so this updates the hand-written table-listing test fixtures to match. ForkDatabaseRequest gains a description field, which the CLI leaves unset for now. --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- src/commands/databases.rs | 9 +++++---- src/commands/indexes.rs | 12 ++++++------ 4 files changed, 14 insertions(+), 13 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d93b72a..5329d55 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1269,9 +1269,9 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" [[package]] name = "hotdata" -version = "0.18.1" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c9b30d9088fa685f4b8609880cdce2422653bc24f0c6fe9b7ebb1e3ce787c60" +checksum = "aa8ce6ddc2aff8a478cd95d3aef327e0b2e6190a637d5afe1e1cdcb7283ca836" dependencies = [ "arrow-array", "arrow-buffer", diff --git a/Cargo.toml b/Cargo.toml index 10155cb..15f7077 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ path = "src/main.rs" # behind a shared multi-thread tokio runtime. The `arrow` feature backs result # decode; `upload_file` runs the presigned direct-to-storage upload flow # (see src/sdk.rs::Api::upload). -hotdata = { version = "0.18.1", features = ["arrow"] } +hotdata = { version = "0.19.0", features = ["arrow"] } # Shared multi-thread runtime for the sync wrapper; block_on is called # concurrently from rayon worker threads (see src/indexes.rs). The presigned # upload (src/sdk.rs::Api::upload) drives the SDK's async `upload_file` on this diff --git a/src/commands/databases.rs b/src/commands/databases.rs index 0e0b617..873243e 100644 --- a/src/commands/databases.rs +++ b/src/commands/databases.rs @@ -885,6 +885,7 @@ pub fn fork_database_request( hotdata::models::ForkDatabaseRequest { name: name.map(Some), expires_at: expires_at.map(|e| Some(e.to_string())), + description: None, } } @@ -3897,7 +3898,7 @@ mod tests { .with_status(200) .with_header("content-type", "application/json") .with_body( - r#"{"count":1,"limit":1000,"tables":[{"connection":"default","schema":"public","table":"b","synced":true,"partition_by":[],"sorted_by":[],"last_sync":null}],"has_more":false,"next_cursor":null}"#, + r#"{"count":1,"limit":1000,"tables":[{"connection":"default","schema":"public","table":"b","synced":true,"partition_by":[],"sorted_by":[],"constant_per_key":[],"last_sync":null}],"has_more":false,"next_cursor":null}"#, ) .create(); let page0 = server @@ -3909,7 +3910,7 @@ mod tests { .with_status(200) .with_header("content-type", "application/json") .with_body( - r#"{"count":1,"limit":1000,"tables":[{"connection":"default","schema":"public","table":"a","synced":false,"partition_by":[],"sorted_by":[],"last_sync":null}],"has_more":true,"next_cursor":"cur2"}"#, + r#"{"count":1,"limit":1000,"tables":[{"connection":"default","schema":"public","table":"a","synced":false,"partition_by":[],"sorted_by":[],"constant_per_key":[],"last_sync":null}],"has_more":true,"next_cursor":"cur2"}"#, ) .create(); @@ -4023,7 +4024,7 @@ mod tests { .with_status(200) .with_header("content-type", "application/json") .with_body( - r#"{"count":1,"limit":5,"tables":[{"connection":"default","schema":"public","table":"a","synced":true,"partition_by":[],"sorted_by":[],"last_sync":null}],"has_more":true,"next_cursor":"page2"}"#, + r#"{"count":1,"limit":5,"tables":[{"connection":"default","schema":"public","table":"a","synced":true,"partition_by":[],"sorted_by":[],"constant_per_key":[],"last_sync":null}],"has_more":true,"next_cursor":"page2"}"#, ) .expect(1) .create(); @@ -4049,7 +4050,7 @@ mod tests { .with_status(200) .with_header("content-type", "application/json") .with_body( - r#"{"count":1,"limit":1000,"tables":[{"connection":"default","schema":"public","table":"orders","synced":true,"partition_by":[],"sorted_by":[],"last_sync":null}],"has_more":false,"next_cursor":null}"#, + r#"{"count":1,"limit":1000,"tables":[{"connection":"default","schema":"public","table":"orders","synced":true,"partition_by":[],"sorted_by":[],"constant_per_key":[],"last_sync":null}],"has_more":false,"next_cursor":null}"#, ) .create(); diff --git a/src/commands/indexes.rs b/src/commands/indexes.rs index fd74694..8d23df8 100644 --- a/src/commands/indexes.rs +++ b/src/commands/indexes.rs @@ -766,7 +766,7 @@ mod tests { .with_header("content-type", "application/json") .with_body( r#"{"count":1,"limit":100,"tables":[ - {"connection":"__db_abc","schema":"public","table":"vec_mid","synced":true,"partition_by":[],"sorted_by":[]} + {"connection":"__db_abc","schema":"public","table":"vec_mid","synced":true,"partition_by":[],"sorted_by":[],"constant_per_key":[]} ],"has_more":false,"next_cursor":null}"#, ) .create(); @@ -848,7 +848,7 @@ mod tests { .with_header("content-type", "application/json") .with_body( r#"{"count":1,"limit":100,"tables":[ - {"connection":"__db_abc","schema":"public","table":"listings","synced":true,"partition_by":[],"sorted_by":[]} + {"connection":"__db_abc","schema":"public","table":"listings","synced":true,"partition_by":[],"sorted_by":[],"constant_per_key":[]} ],"has_more":false,"next_cursor":null}"#, ) .create(); @@ -903,7 +903,7 @@ mod tests { .with_header("content-type", "application/json") .with_body( r#"{"count":1,"limit":100,"tables":[ - {"connection":"Warehouse","schema":"public","table":"events","synced":true,"partition_by":[],"sorted_by":[]} + {"connection":"Warehouse","schema":"public","table":"events","synced":true,"partition_by":[],"sorted_by":[],"constant_per_key":[]} ],"has_more":false,"next_cursor":null}"#, ) .create(); @@ -947,7 +947,7 @@ mod tests { .with_header("content-type", "application/json") .with_body( r#"{"count":1,"limit":100,"tables":[ - {"connection":"__db_abc","schema":"public","table":"listings","synced":true,"partition_by":[],"sorted_by":[]} + {"connection":"__db_abc","schema":"public","table":"listings","synced":true,"partition_by":[],"sorted_by":[],"constant_per_key":[]} ],"has_more":false,"next_cursor":null}"#, ) .create(); @@ -993,8 +993,8 @@ mod tests { .with_header("content-type", "application/json") .with_body( r#"{"count":2,"limit":100,"tables":[ - {"connection":"c1","schema":"public","table":"z","synced":true,"partition_by":[],"sorted_by":[]}, - {"connection":"c1","schema":"public","table":"a","synced":true,"partition_by":[],"sorted_by":[]} + {"connection":"c1","schema":"public","table":"z","synced":true,"partition_by":[],"sorted_by":[],"constant_per_key":[]}, + {"connection":"c1","schema":"public","table":"a","synced":true,"partition_by":[],"sorted_by":[],"constant_per_key":[]} ],"has_more":false,"next_cursor":null}"#, ) .create();