mirror of
https://github.com/lancedb/lancedb.git
synced 2026-10-26 05:26:14 +00:00
add a default value for search.limit to be consistent with python sdk (#1191)
Changed the default value for search.limit to be 10
This commit is contained in:
@@ -124,9 +124,9 @@ describe('LanceDB client', function () {
|
||||
const uri = await createTestDB(2, 100)
|
||||
const con = await lancedb.connect(uri)
|
||||
const table = (await con.openTable('vectors')) as LocalTable
|
||||
let results = await table.filter('id % 2 = 0').execute()
|
||||
let results = await table.filter('id % 2 = 0').limit(100).execute()
|
||||
assertResults(results)
|
||||
results = await table.where('id % 2 = 0').execute()
|
||||
results = await table.where('id % 2 = 0').limit(100).execute()
|
||||
assertResults(results)
|
||||
|
||||
// Should reject a bad filter
|
||||
|
||||
Reference in New Issue
Block a user