All Implemented Interfaces:
NamedWriteable, Writeable, Resolvable, EvaluatorMapper, OptionalArgument, ConvertFunction, SurrogateExpression

public class ToLongSurrogate extends EsqlScalarFunction implements SurrogateExpression, OptionalArgument, ConvertFunction
In a single-parameter mode, the function converts the first parameter to a long.
  • TO_LONG(value) - value supports boolean, date, date_nanos, keyword, text, double, long, unsigned_long, integer, counter_integer, counter_long, geohash, geotile, geohex

In two-parameter mode, the function parses the first string parameter into a long using the second parameter as a base.
  • TO_LONG(string, base) - base supports integer, long and unsigned_long