Expand description
Comparing row values (packages/zql/src/ivm/data.ts).
Structs§
- Incomparable
Error - Two values JS’s
compareValuesthrows on.
Functions§
- compare
compare_checked, with a total order for the inputs JS throws on: by type, then by JSON encoding. Pipelines use this so a badorderBy(on a json column) degrades instead of failing.- compare_
checked compareValues(a, b): strings by UTF-8 bytes, numbers numerically,false < true, andnullbefore everything. Values of different non-null types, and arrays or objects, can’t be compared: JS throws.- equal
valuesEqual(a, b): like===, exceptnullequals nothing (as in SQL joins). Arrays and objects are never equal: JS compares them by reference.