fix: remove accidental console.log (#1307)

i accidentally left a console.log when doing
https://github.com/lancedb/lancedb/pull/1290
This commit is contained in:
Cory Grinstead
2024-05-15 16:07:46 -05:00
committed by GitHub
parent 055efdcdb6
commit 6eaaee59f8
2 changed files with 2 additions and 6 deletions

View File

@@ -677,8 +677,6 @@ function validateSchemaEmbeddings(
}
if (missingEmbeddingFields.length > 0 && embeddings === undefined) {
console.log({ missingEmbeddingFields, embeddings });
throw new Error(
`Table has embeddings: "${missingEmbeddingFields
.map((f) => f.name)
@@ -686,5 +684,5 @@ function validateSchemaEmbeddings(
);
}
return new Schema(fields);
return new Schema(fields, schema.metadata);
}