[ESQL] Support binary comparisons between Unsigned Long and other numeric types #110663
Labels
:Analytics/ES|QL
AKA ESQL
>enhancement
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
Currently, binary comparisons between unsigned longs and other numeric types are unsupported. Supporting comparisons however does not require resolving any of the tricky casting questions that arithmetic needs to figure out. We know that all negative numbers are strictly less than all unsigned longs, so we can just return appropriately. For non-negative values,
ints
andlongs
can safely be cast tounsigned longs
, andunsigned longs
can be cast todouble
(which is lossy, but is whatlongs
do)The text was updated successfully, but these errors were encountered: