ESQL: Unmute nullify tests with STATS#140554
ESQL: Unmute nullify tests with STATS#140554elasticsearchmachine merged 4 commits intoelastic:mainfrom
Conversation
|
Pinging @elastic/es-analytical-engine (Team:Analytics) |
| ; | ||
|
|
||
| s:long | ||
| s:double |
There was a problem hiding this comment.
Why it become double? Looks like x in row could be cast to int or long
There was a problem hiding this comment.
Note that foo doesn't exist; x is unused.
About why double, I suspect it's a purely technical thing related with this condition:
dt.isWholeNumber() == false -> double. Alex may confirm what is the field type here. If it's NULL, and as NULL isn't a whole number, double it is!
There was a problem hiding this comment.
Excellent question @idegtiarenko .
Ivan's answer is correct, although that boils down to "because we said so" when we implemented SUM.
I'll sleep better after double checking this, but currently this is consistent with ROW x = null | STATS SUM(x).
For sleeping better, I opened #140577.
💔 Backport failed
You can use sqren/backport to manually backport by running |
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
Relates elastic#138888 and elastic#139797 (cherry picked from commit f73e4cc)
Relates #138888 and #139797