blob: c091fe5c091cf24ef3674f97b25d852173cdd97b [file] [log] [blame]
{
"tests": [
{
"description": "query: a Where clause comparing to NaN",
"comment": "A Where clause that tests for equality with NaN results in a unary filter.",
"query": {
"collPath": "projects/projectID/databases/(default)/documents/C",
"clauses": [
{
"where": {
"path": {
"field": [
"a"
]
},
"op": "==",
"jsonValue": "\"NaN\""
}
}
],
"query": {
"from": [
{
"collectionId": "C"
}
],
"where": {
"unaryFilter": {
"op": "IS_NAN",
"field": {
"fieldPath": "a"
}
}
}
}
}
}
]
}