chore(rust): simplified version of optimize (#869)

Consolidate various optimize() into one method, similar to postgres
VACCUM in the process of preparing Rust API for public use
This commit is contained in:
Lei Xu
2024-01-26 11:36:04 -08:00
committed by Weston Pace
parent cef0293985
commit a192c1a9b1
6 changed files with 134 additions and 66 deletions

View File

@@ -391,24 +391,6 @@ describe('LanceDB client', function () {
})
}).timeout(120000)
it('fails to create a new table when the vector column is missing', async function () {
const dir = await track().mkdir('lancejs')
const con = await lancedb.connect(dir)
const data = [
{
id: 1,
price: 10
}
]
const create = con.createTable('missing_vector', data)
await expect(create).to.be.rejectedWith(
Error,
"column 'vector' is missing"
)
})
it('use overwrite flag to overwrite existing table', async function () {
const dir = await track().mkdir('lancejs')
const con = await lancedb.connect(dir)