Merge branch 'master' into sheets-errors

This commit is contained in:
Sam Rose 2025-02-05 14:25:17 +00:00 committed by GitHub
commit 7891e6a007
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -388,7 +388,7 @@ class InternalBuilder {
} }
} }
if (typeof input === "string") { if (typeof input === "string" && schema.type === FieldType.DATETIME) {
if (isInvalidISODateString(input)) { if (isInvalidISODateString(input)) {
return null return null
} }

View File

@ -1040,6 +1040,12 @@ if (descriptions.length) {
string: { name: "FO" }, string: { name: "FO" },
}).toContainExactly([{ name: "foo" }]) }).toContainExactly([{ name: "foo" }])
}) })
it("should not coerce string to date for string columns", async () => {
await expectQuery({
string: { name: "2020-01-01" },
}).toFindNothing()
})
}) })
describe("range", () => { describe("range", () => {