diff --git a/Cargo.lock b/Cargo.lock index 63b4ad423..ae2cb22e5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3697,8 +3697,8 @@ checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c" [[package]] name = "fsst" -version = "15.0.0-beta.7" -source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.7#dd227f61984e1e7f2120c8b34237c014129ea240" +version = "15.0.0-beta.8" +source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.8#bcdd78e302d329ed2b7124116c396c8b7e3c95f8" dependencies = [ "arrow-array", "rand 0.9.5", @@ -5195,8 +5195,8 @@ checksum = "e037a2e1d8d5fdbd49b16a4ea09d5d6401c1f29eca5ff29d03d3824dba16256a" [[package]] name = "lance" -version = "15.0.0-beta.7" -source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.7#dd227f61984e1e7f2120c8b34237c014129ea240" +version = "15.0.0-beta.8" +source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.8#bcdd78e302d329ed2b7124116c396c8b7e3c95f8" dependencies = [ "arc-swap", "arrow", @@ -5271,8 +5271,8 @@ dependencies = [ [[package]] name = "lance-arrow" -version = "15.0.0-beta.7" -source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.7#dd227f61984e1e7f2120c8b34237c014129ea240" +version = "15.0.0-beta.8" +source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.8#bcdd78e302d329ed2b7124116c396c8b7e3c95f8" dependencies = [ "arrow-array", "arrow-buffer", @@ -5294,7 +5294,7 @@ dependencies = [ [[package]] name = "lance-arrow-scalar" version = "59.0.0" -source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.7#dd227f61984e1e7f2120c8b34237c014129ea240" +source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.8#bcdd78e302d329ed2b7124116c396c8b7e3c95f8" dependencies = [ "arrow-array", "arrow-buffer", @@ -5308,7 +5308,7 @@ dependencies = [ [[package]] name = "lance-arrow-stats" version = "59.0.0" -source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.7#dd227f61984e1e7f2120c8b34237c014129ea240" +source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.8#bcdd78e302d329ed2b7124116c396c8b7e3c95f8" dependencies = [ "arrow-array", "arrow-schema", @@ -5317,8 +5317,8 @@ dependencies = [ [[package]] name = "lance-bitpacking" -version = "15.0.0-beta.7" -source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.7#dd227f61984e1e7f2120c8b34237c014129ea240" +version = "15.0.0-beta.8" +source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.8#bcdd78e302d329ed2b7124116c396c8b7e3c95f8" dependencies = [ "arrayref", "crunchy", @@ -5328,8 +5328,8 @@ dependencies = [ [[package]] name = "lance-core" -version = "15.0.0-beta.7" -source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.7#dd227f61984e1e7f2120c8b34237c014129ea240" +version = "15.0.0-beta.8" +source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.8#bcdd78e302d329ed2b7124116c396c8b7e3c95f8" dependencies = [ "arrow-array", "arrow-buffer", @@ -5366,8 +5366,8 @@ dependencies = [ [[package]] name = "lance-datafusion" -version = "15.0.0-beta.7" -source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.7#dd227f61984e1e7f2120c8b34237c014129ea240" +version = "15.0.0-beta.8" +source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.8#bcdd78e302d329ed2b7124116c396c8b7e3c95f8" dependencies = [ "arrow", "arrow-array", @@ -5399,8 +5399,8 @@ dependencies = [ [[package]] name = "lance-datafusion-exec" -version = "15.0.0-beta.7" -source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.7#dd227f61984e1e7f2120c8b34237c014129ea240" +version = "15.0.0-beta.8" +source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.8#bcdd78e302d329ed2b7124116c396c8b7e3c95f8" dependencies = [ "arrow", "arrow-array", @@ -5425,8 +5425,8 @@ dependencies = [ [[package]] name = "lance-datagen" -version = "15.0.0-beta.7" -source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.7#dd227f61984e1e7f2120c8b34237c014129ea240" +version = "15.0.0-beta.8" +source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.8#bcdd78e302d329ed2b7124116c396c8b7e3c95f8" dependencies = [ "arrow", "arrow-array", @@ -5443,8 +5443,8 @@ dependencies = [ [[package]] name = "lance-derive" -version = "15.0.0-beta.7" -source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.7#dd227f61984e1e7f2120c8b34237c014129ea240" +version = "15.0.0-beta.8" +source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.8#bcdd78e302d329ed2b7124116c396c8b7e3c95f8" dependencies = [ "proc-macro2", "quote", @@ -5453,8 +5453,8 @@ dependencies = [ [[package]] name = "lance-encoding" -version = "15.0.0-beta.7" -source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.7#dd227f61984e1e7f2120c8b34237c014129ea240" +version = "15.0.0-beta.8" +source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.8#bcdd78e302d329ed2b7124116c396c8b7e3c95f8" dependencies = [ "arrow-arith", "arrow-array", @@ -5488,8 +5488,8 @@ dependencies = [ [[package]] name = "lance-file" -version = "15.0.0-beta.7" -source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.7#dd227f61984e1e7f2120c8b34237c014129ea240" +version = "15.0.0-beta.8" +source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.8#bcdd78e302d329ed2b7124116c396c8b7e3c95f8" dependencies = [ "arrow-arith", "arrow-array", @@ -5521,8 +5521,8 @@ dependencies = [ [[package]] name = "lance-geo" -version = "15.0.0-beta.7" -source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.7#dd227f61984e1e7f2120c8b34237c014129ea240" +version = "15.0.0-beta.8" +source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.8#bcdd78e302d329ed2b7124116c396c8b7e3c95f8" dependencies = [ "geo-traits", "geo-types", @@ -5534,8 +5534,8 @@ dependencies = [ [[package]] name = "lance-index" -version = "15.0.0-beta.7" -source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.7#dd227f61984e1e7f2120c8b34237c014129ea240" +version = "15.0.0-beta.8" +source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.8#bcdd78e302d329ed2b7124116c396c8b7e3c95f8" dependencies = [ "arc-swap", "arrow", @@ -5611,8 +5611,8 @@ dependencies = [ [[package]] name = "lance-index-core" -version = "15.0.0-beta.7" -source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.7#dd227f61984e1e7f2120c8b34237c014129ea240" +version = "15.0.0-beta.8" +source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.8#bcdd78e302d329ed2b7124116c396c8b7e3c95f8" dependencies = [ "arrow-array", "arrow-schema", @@ -5635,8 +5635,8 @@ dependencies = [ [[package]] name = "lance-io" -version = "15.0.0-beta.7" -source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.7#dd227f61984e1e7f2120c8b34237c014129ea240" +version = "15.0.0-beta.8" +source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.8#bcdd78e302d329ed2b7124116c396c8b7e3c95f8" dependencies = [ "arrow", "arrow-array", @@ -5681,8 +5681,8 @@ dependencies = [ [[package]] name = "lance-jsonb" -version = "15.0.0-beta.7" -source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.7#dd227f61984e1e7f2120c8b34237c014129ea240" +version = "15.0.0-beta.8" +source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.8#bcdd78e302d329ed2b7124116c396c8b7e3c95f8" dependencies = [ "byteorder", "ethnum", @@ -5699,8 +5699,8 @@ dependencies = [ [[package]] name = "lance-linalg" -version = "15.0.0-beta.7" -source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.7#dd227f61984e1e7f2120c8b34237c014129ea240" +version = "15.0.0-beta.8" +source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.8#bcdd78e302d329ed2b7124116c396c8b7e3c95f8" dependencies = [ "argminmax 0.7.1", "arrow-array", @@ -5715,8 +5715,8 @@ dependencies = [ [[package]] name = "lance-namespace" -version = "15.0.0-beta.7" -source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.7#dd227f61984e1e7f2120c8b34237c014129ea240" +version = "15.0.0-beta.8" +source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.8#bcdd78e302d329ed2b7124116c396c8b7e3c95f8" dependencies = [ "arrow", "async-trait", @@ -5730,8 +5730,8 @@ dependencies = [ [[package]] name = "lance-namespace-impls" -version = "15.0.0-beta.7" -source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.7#dd227f61984e1e7f2120c8b34237c014129ea240" +version = "15.0.0-beta.8" +source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.8#bcdd78e302d329ed2b7124116c396c8b7e3c95f8" dependencies = [ "arc-swap", "arrow", @@ -5785,8 +5785,8 @@ dependencies = [ [[package]] name = "lance-select" -version = "15.0.0-beta.7" -source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.7#dd227f61984e1e7f2120c8b34237c014129ea240" +version = "15.0.0-beta.8" +source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.8#bcdd78e302d329ed2b7124116c396c8b7e3c95f8" dependencies = [ "arrow-array", "arrow-buffer", @@ -5800,8 +5800,8 @@ dependencies = [ [[package]] name = "lance-table" -version = "15.0.0-beta.7" -source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.7#dd227f61984e1e7f2120c8b34237c014129ea240" +version = "15.0.0-beta.8" +source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.8#bcdd78e302d329ed2b7124116c396c8b7e3c95f8" dependencies = [ "arrow", "arrow-array", @@ -5842,8 +5842,8 @@ dependencies = [ [[package]] name = "lance-testing" -version = "15.0.0-beta.7" -source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.7#dd227f61984e1e7f2120c8b34237c014129ea240" +version = "15.0.0-beta.8" +source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.8#bcdd78e302d329ed2b7124116c396c8b7e3c95f8" dependencies = [ "arrow-array", "arrow-schema", @@ -5856,8 +5856,8 @@ dependencies = [ [[package]] name = "lance-tokenizer" -version = "15.0.0-beta.7" -source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.7#dd227f61984e1e7f2120c8b34237c014129ea240" +version = "15.0.0-beta.8" +source = "git+https://github.com/lance-format/lance.git?tag=v15.0.0-beta.8#bcdd78e302d329ed2b7124116c396c8b7e3c95f8" dependencies = [ "frostem", "icu_segmenter", diff --git a/Cargo.toml b/Cargo.toml index 99179a3e1..3f8300d50 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,21 +19,21 @@ categories = ["database-implementations"] rust-version = "1.95.0" [workspace.dependencies] -lance = { "version" = "=15.0.0-beta.7", default-features = false, "tag" = "v15.0.0-beta.7", "git" = "https://github.com/lance-format/lance.git" } -lance-core = { "version" = "=15.0.0-beta.7", "tag" = "v15.0.0-beta.7", "git" = "https://github.com/lance-format/lance.git" } -lance-datagen = { "version" = "=15.0.0-beta.7", "tag" = "v15.0.0-beta.7", "git" = "https://github.com/lance-format/lance.git" } -lance-file = { "version" = "=15.0.0-beta.7", "tag" = "v15.0.0-beta.7", "git" = "https://github.com/lance-format/lance.git" } -lance-io = { "version" = "=15.0.0-beta.7", default-features = false, "tag" = "v15.0.0-beta.7", "git" = "https://github.com/lance-format/lance.git" } -lance-index = { "version" = "=15.0.0-beta.7", "tag" = "v15.0.0-beta.7", "git" = "https://github.com/lance-format/lance.git" } -lance-jsonb = { "version" = "=15.0.0-beta.7", "tag" = "v15.0.0-beta.7", "git" = "https://github.com/lance-format/lance.git" } -lance-linalg = { "version" = "=15.0.0-beta.7", "tag" = "v15.0.0-beta.7", "git" = "https://github.com/lance-format/lance.git" } -lance-namespace = { "version" = "=15.0.0-beta.7", "tag" = "v15.0.0-beta.7", "git" = "https://github.com/lance-format/lance.git" } -lance-namespace-impls = { "version" = "=15.0.0-beta.7", default-features = false, "tag" = "v15.0.0-beta.7", "git" = "https://github.com/lance-format/lance.git" } -lance-table = { "version" = "=15.0.0-beta.7", "tag" = "v15.0.0-beta.7", "git" = "https://github.com/lance-format/lance.git" } -lance-testing = { "version" = "=15.0.0-beta.7", "tag" = "v15.0.0-beta.7", "git" = "https://github.com/lance-format/lance.git" } -lance-datafusion = { "version" = "=15.0.0-beta.7", "tag" = "v15.0.0-beta.7", "git" = "https://github.com/lance-format/lance.git" } -lance-encoding = { "version" = "=15.0.0-beta.7", "tag" = "v15.0.0-beta.7", "git" = "https://github.com/lance-format/lance.git" } -lance-arrow = { "version" = "=15.0.0-beta.7", "tag" = "v15.0.0-beta.7", "git" = "https://github.com/lance-format/lance.git" } +lance = { "version" = "=15.0.0-beta.8", default-features = false, "tag" = "v15.0.0-beta.8", "git" = "https://github.com/lance-format/lance.git" } +lance-core = { "version" = "=15.0.0-beta.8", "tag" = "v15.0.0-beta.8", "git" = "https://github.com/lance-format/lance.git" } +lance-datagen = { "version" = "=15.0.0-beta.8", "tag" = "v15.0.0-beta.8", "git" = "https://github.com/lance-format/lance.git" } +lance-file = { "version" = "=15.0.0-beta.8", "tag" = "v15.0.0-beta.8", "git" = "https://github.com/lance-format/lance.git" } +lance-io = { "version" = "=15.0.0-beta.8", default-features = false, "tag" = "v15.0.0-beta.8", "git" = "https://github.com/lance-format/lance.git" } +lance-index = { "version" = "=15.0.0-beta.8", "tag" = "v15.0.0-beta.8", "git" = "https://github.com/lance-format/lance.git" } +lance-jsonb = { "version" = "=15.0.0-beta.8", "tag" = "v15.0.0-beta.8", "git" = "https://github.com/lance-format/lance.git" } +lance-linalg = { "version" = "=15.0.0-beta.8", "tag" = "v15.0.0-beta.8", "git" = "https://github.com/lance-format/lance.git" } +lance-namespace = { "version" = "=15.0.0-beta.8", "tag" = "v15.0.0-beta.8", "git" = "https://github.com/lance-format/lance.git" } +lance-namespace-impls = { "version" = "=15.0.0-beta.8", default-features = false, "tag" = "v15.0.0-beta.8", "git" = "https://github.com/lance-format/lance.git" } +lance-table = { "version" = "=15.0.0-beta.8", "tag" = "v15.0.0-beta.8", "git" = "https://github.com/lance-format/lance.git" } +lance-testing = { "version" = "=15.0.0-beta.8", "tag" = "v15.0.0-beta.8", "git" = "https://github.com/lance-format/lance.git" } +lance-datafusion = { "version" = "=15.0.0-beta.8", "tag" = "v15.0.0-beta.8", "git" = "https://github.com/lance-format/lance.git" } +lance-encoding = { "version" = "=15.0.0-beta.8", "tag" = "v15.0.0-beta.8", "git" = "https://github.com/lance-format/lance.git" } +lance-arrow = { "version" = "=15.0.0-beta.8", "tag" = "v15.0.0-beta.8", "git" = "https://github.com/lance-format/lance.git" } lancedb = { path = "rust/lancedb", default-features = false } ahash = "0.8" anyhow = "1" diff --git a/docs/src/js/classes/Connection.md b/docs/src/js/classes/Connection.md index f14afaa46..055f3ebb4 100644 --- a/docs/src/js/classes/Connection.md +++ b/docs/src/js/classes/Connection.md @@ -826,9 +826,10 @@ abstract renameTable( Rename a table. -Currently only supported in LanceDB Distributed. LanceDB Embedded connections and -namespace-backed connections (via [connectNamespace](../functions/connectNamespace.md)) reject with -a "not supported" error. +Supported in LanceDB Distributed and by namespace backends that implement +renaming. Directory namespaces support renaming tables resolved through their +manifest, including tables within or across child namespaces. LanceDB Embedded +connections and directory-listing root tables reject with a "not supported" error. #### Parameters diff --git a/java/pom.xml b/java/pom.xml index 8f1b5f534..fb2d63827 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -28,7 +28,7 @@ UTF-8 15.0.0 - 15.0.0-beta.7 + 15.0.0-beta.8 2.18.11 false 2.30.0 diff --git a/nodejs/lancedb/connection.ts b/nodejs/lancedb/connection.ts index 45581be5a..53ea4fef3 100644 --- a/nodejs/lancedb/connection.ts +++ b/nodejs/lancedb/connection.ts @@ -558,9 +558,10 @@ export abstract class Connection { /** * Rename a table. * - * Currently only supported in LanceDB Distributed. LanceDB Embedded connections and - * namespace-backed connections (via {@link connectNamespace}) reject with - * a "not supported" error. + * Supported in LanceDB Distributed and by namespace backends that implement + * renaming. Directory namespaces support renaming tables resolved through their + * manifest, including tables within or across child namespaces. LanceDB Embedded + * connections and directory-listing root tables reject with a "not supported" error. * * @param {string} currentName - The current name of the table. * @param {string} newName - The new name for the table. diff --git a/python/python/tests/test_namespace.py b/python/python/tests/test_namespace.py index bc8da57ce..a2806df53 100644 --- a/python/python/tests/test_namespace.py +++ b/python/python/tests/test_namespace.py @@ -582,37 +582,43 @@ class TestNamespaceConnection: assert table_schema.field("id").type == pa.int64() assert table_schema.field("text").type == pa.string() - def test_rename_table(self): - """Test that rename_table renames a table in the namespace. - - The `dir` namespace implementation in lance-namespace-impls does not - implement `rename_table` yet (only the `rest` backend does), so it - currently falls back to the default trait method which raises - NotSupported. This is expected to start passing once the `dir` - backend gains rename_table support upstream. - """ + @pytest.mark.parametrize("destination_namespace", ["test_ns", "destination_ns"]) + def test_rename_table(self, destination_namespace): + """Test that renaming a table preserves its data and namespace registration.""" db = lancedb.connect_namespace("dir", {"root": self.temp_dir}) - - # Create a child namespace first db.create_namespace(["test_ns"]) + if destination_namespace != "test_ns": + db.create_namespace([destination_namespace]) - # Create a table in child namespace schema = pa.schema( [ pa.field("id", pa.int64()), pa.field("vector", pa.list_(pa.float32(), 2)), ] ) - db.create_table("old_name", schema=schema, namespace_path=["test_ns"]) + data = pa.Table.from_pylist( + [{"id": 1, "vector": [1.0, 2.0]}, {"id": 2, "vector": [3.0, 4.0]}], + schema=schema, + ) + db.create_table("old_name", data=data, namespace_path=["test_ns"]) - # Rename the table within the same namespace - with pytest.raises(NotImplementedError, match="rename_table not implemented"): - db.rename_table( - "old_name", - "new_name", - cur_namespace_path=["test_ns"], - new_namespace_path=["test_ns"], - ) + db.rename_table( + "old_name", + "new_name", + cur_namespace_path=["test_ns"], + new_namespace_path=[destination_namespace], + ) + + reopened = lancedb.connect_namespace("dir", {"root": self.temp_dir}) + assert "old_name" not in reopened.table_names(namespace_path=["test_ns"]) + assert "new_name" in reopened.table_names( + namespace_path=[destination_namespace] + ) + with pytest.raises(TableNotFoundError): + reopened.open_table("old_name", namespace_path=["test_ns"]) + table = reopened.open_table("new_name", namespace_path=[destination_namespace]) + assert table.namespace == [destination_namespace] + assert table.to_arrow().equals(data) def test_drop_all_tables(self): """Test dropping all tables through namespace.""" diff --git a/rust/lancedb/src/connection.rs b/rust/lancedb/src/connection.rs index ef77d3729..ac9a914a1 100644 --- a/rust/lancedb/src/connection.rs +++ b/rust/lancedb/src/connection.rs @@ -1192,7 +1192,10 @@ impl Connection { /// Rename a table in the database. /// - /// This is only supported in LanceDB Distributed. + /// Supported in LanceDB Distributed and by namespace backends that implement + /// renaming. Directory namespaces support renaming tables resolved through + /// their manifest, including tables within or across child namespaces. + /// Directory-listing root tables cannot be renamed. pub async fn rename_table( &self, old_name: impl AsRef, diff --git a/rust/lancedb/src/remote/table.rs b/rust/lancedb/src/remote/table.rs index 3a9cd567c..e37e97755 100644 --- a/rust/lancedb/src/remote/table.rs +++ b/rust/lancedb/src/remote/table.rs @@ -2461,6 +2461,7 @@ impl BaseTable for RemoteTable { version: u64, timestamp: Option>, timestamp_millis: Option, + manifest_size: Option, #[serde(default)] metadata: std::collections::BTreeMap, } @@ -2506,6 +2507,7 @@ impl BaseTable for RemoteTable { version: entry.version, timestamp, metadata: entry.metadata, + manifest_size: entry.manifest_size, }) }) .collect() @@ -9486,11 +9488,13 @@ mod tests { version: 1, timestamp: "2024-01-01T00:00:00Z".parse().unwrap(), metadata: Default::default(), + manifest_size: Some(1024), }; let version2 = lance::dataset::Version { version: 2, timestamp: "2024-02-01T00:00:00Z".parse().unwrap(), metadata: Default::default(), + manifest_size: None, }; let response_body = serde_json::json!({ "versions": [ @@ -9509,6 +9513,7 @@ mod tests { let versions = table.list_versions().await.unwrap(); assert_eq!(versions.len(), 2); assert_eq!(versions[0].version, 1); + assert_eq!(versions[0].manifest_size, Some(1024)); assert_eq!( versions[0].timestamp, "2024-01-01T00:00:00Z".parse::>().unwrap() @@ -9518,7 +9523,7 @@ mod tests { versions[1].timestamp, "2024-02-01T00:00:00Z".parse::>().unwrap() ); - // assert_eq!(versions, expected); + assert_eq!(versions[1].manifest_size, None); } /// Namespace-backed servers report `timestamp_millis` instead of @@ -9560,6 +9565,7 @@ mod tests { "2024-01-01T00:00:00Z".parse::>().unwrap() ); assert!(versions[0].metadata.is_empty()); + assert_eq!(versions[0].manifest_size, None); assert_eq!(versions[1].version, 2); assert_eq!( versions[1].timestamp,