* Check if operator is a comparison operator that takes two values * These operators cannot accept null/undefined as values * (null comparisons in SQL always evaluate to UNKNOWN)
(name: string)
| 388 | * (null comparisons in SQL always evaluate to UNKNOWN) |
| 389 | */ |
| 390 | function isComparisonOp(name: string): boolean { |
| 391 | const comparisonOps = [`eq`, `gt`, `gte`, `lt`, `lte`, `like`, `ilike`] |
| 392 | return comparisonOps.includes(name) |
| 393 | } |
| 394 | |
| 395 | /** |
| 396 | * Checks if the operator is a comparison operator (excluding eq) |