Open not-napoleon opened 1 month ago
Pinging @elastic/es-analytical-engine (Team:Analytics)
Giving this some more thought, I'm not sure it makes sense to allow Integer as an input. Max int being around 2 billion, in nanosecond time, puts it seconds after epoch. It seems much more likely that a user attempting to do this has made an error and we should warn them at parse time.
If folks really want an integer as an input they can do TO_DATE_NANOS(TO_LONG(iii))
Similar to
TO_DATETIME
, but returning a date nanos type. It should accept the same set of types asTO_DATETIME
:datetime
date_nanos
long
keyword
text
double
unsigned_long
integer
~