Merge branch 'master' into sheets-errors
This commit is contained in:
commit
7891e6a007
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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", () => {
|
||||||
|
|
Loading…
Reference in New Issue