mirror of
https://github.com/lancedb/lancedb.git
synced 2026-01-08 12:52:58 +00:00
feat: change create table to accept Arrow table (#845)
This commit is contained in:
@@ -129,7 +129,8 @@ export class Query<T = number[]> {
|
||||
const newObject: Record<string, unknown> = {}
|
||||
Object.keys(entry).forEach((key: string) => {
|
||||
if (entry[key] instanceof Vector) {
|
||||
newObject[key] = (entry[key] as Vector).toArray()
|
||||
// toJSON() returns f16 array correctly
|
||||
newObject[key] = (entry[key] as Vector).toJSON()
|
||||
} else {
|
||||
newObject[key] = entry[key]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user