{ | |
"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" | |
} | |
} | |
} | |
} | |
} | |
} | |
] | |
} |