fix(python): normalize blob row ID inputs and errors (#4293)

This commit is contained in:
lancedb-gatefixer[bot]
2026-10-13 14:49:51 -07:00
committed by GitHub
parent 38a62db418
commit 0212cfd3d6
13 changed files with 368 additions and 78 deletions
+12
View File
@@ -2817,6 +2817,18 @@ describe("when dealing with blob columns", () => {
expect(Buffer.from(await files[1]!.read()).toString()).toBe("beta");
});
it("rejects a whole blob read batch when one row ID was deleted", async () => {
const { table, rowIds } = await openBlobTable();
await table.delete("id = 2");
await expect(table.fetchBlobs("image", rowIds)).rejects.toThrow(
`first missing row ids: [${rowIds[1]}]`,
);
await expect(table.fetchBlobFiles("image", rowIds)).rejects.toThrow(
`first missing row ids: [${rowIds[1]}]`,
);
});
it("adds a LargeBinary Arrow column to a blob table", async () => {
const db = await connect(tmpDir.name);
const schema = new Schema([new Field("id", new Int64()), blob("image")]);