@@ -3990,3 +3990,152 @@ Canada |English |null |null
39903990Mv-Land |Mv-Lang |null |null
39913991Mv-Land2 |Mv-Lang2 |null |null
39923992;
3993+
3994+ // PruneColumns
3995+ inlineStatsAfterPruningAggregate
3996+ required_capability: inline_stats_double_release_fix
3997+
3998+ row a = 1
3999+ | stats b = max(a)
4000+ | inline stats c = count(*)
4001+ | drop b
4002+ ;
4003+
4004+ c:long
4005+ 1
4006+ ;
4007+
4008+ // PropagateEmptyRelation
4009+ inlineStatsAfterPruningAggregate2
4010+ required_capability: inline_stats_double_release_fix
4011+
4012+ row a = 12
4013+ | where false
4014+ | stats b = max(a)
4015+ | inline stats c = count(b)
4016+ ;
4017+
4018+ b:integer | c:long
4019+ null | 0
4020+ ;
4021+
4022+
4023+ // ReplaceStatsFilteredAggWithEval
4024+ inlineStatsAfterPruningAggregate3
4025+ required_capability: inline_stats_double_release_fix
4026+
4027+ row a= 12
4028+ | stats b = sum(a) where false
4029+ | inline stats c = max(b)
4030+ ;
4031+
4032+ b:long | c:long
4033+ null | null
4034+ ;
4035+
4036+
4037+ inlineStatsAfterPruningAggregate4
4038+ required_capability: inline_stats_double_release_fix
4039+
4040+ from k8s
4041+ | stats PRezTcny = median(network.cost), `network.cost` = count(network.cost)
4042+ | drop network.cost
4043+ | inline stats QaoRGYyf = count(*)
4044+ | drop `PRezTcny`
4045+ ;
4046+
4047+ QaoRGYyf:long
4048+ 1
4049+ ;
4050+
4051+
4052+ inlineStatsAfterPruningAggregate5
4053+ // https://github.com/elastic/elasticsearch/issues/135679
4054+ required_capability: inline_stats_double_release_fix
4055+ required_capability: join_lookup_v12
4056+
4057+ from colors,airports_web,boo*
4058+ | rename scalerank as language_code
4059+ | lookup join languages_lookup on language_code
4060+ | keep `ratings`, `rgb_vector`
4061+ | mv_expand ratings
4062+ | keep `ratings`, `rgb_vector`
4063+ | inline stats rycaPYFzpAId = absent(ratings), WkdxfjwuR = count(ratings) + avg(ratings)
4064+ | rename ratings AS `WkdxfjwuR`
4065+ | inline stats WkdxfjwuR = sum(WkdxfjwuR) + median(WkdxfjwuR), sjivSBvV = count(*)
4066+ | sort sjivSBvV NULLS FIRST
4067+ | where false OR NOT true OR false OR NOT false
4068+ | where false OR false AND false AND NOT true AND false
4069+ | stats rycaPYFzpAId = median(sjivSBvV) + count(sjivSBvV) + sum(sjivSBvV), NUiLBJXQoMXd = present(sjivSBvV)
4070+ | mv_expand `NUiLBJXQoMXd`
4071+ | inline stats NUiLBJXQoMXd = count(rycaPYFzpAId)
4072+ ;
4073+
4074+ rycaPYFzpAId:double | NUiLBJXQoMXd:long
4075+ null | 0
4076+ ;
4077+
4078+
4079+ inlineStatsAfterPruningAggregate6
4080+ // https://github.com/elastic/elasticsearch/issues/135679
4081+ required_capability: inline_stats_double_release_fix
4082+ required_capability: join_lookup_v12
4083+
4084+ from d*,*
4085+ | rename scalerank as other2
4086+ | rename author.keyword as name_str
4087+ | rename intersects as is_active_bool
4088+ | rename year as id_int
4089+ | rename status as other1
4090+ | lookup join multi_column_joinable_lookup on other2, name_str, is_active_bool, id_int, other1
4091+ | rename street AS `huZQQIKVli`, `network.eth0.currently_connected_clients` AS is_rehired
4092+ | eval GhMzAVXivNI = message.raw, VDJKNsopeKQq = substring(threat_level, 1, 3), xeUVJNra = length(huZQQIKVli), kOQjzWgZNhwI = false
4093+ | where false AND NOT false AND true AND NOT false
4094+ | CHANGE_POINT salary_change.int ON birth_date AS UpYfyPcYFkes, EwnNgKIrDEKS
4095+ | sort owner.name DESC NULLS LAST, message.raw, country.keyword DESC NULLS LAST, UpYfyPcYFkes ASC NULLS FIRST, name_str ASC NULLS FIRST, num, event_duration DESC NULLS LAST, extra2 DESC, languages.byte ASC NULLS FIRST, client.ip NULLS LAST, ip1, collection NULLS FIRST, city.country.name DESC, destination.IP DESC NULLS LAST, host.version DESC, hex_code ASC NULLS LAST, language.code ASC NULLS LAST, language.name ASC, details DESC, language_name DESC NULLS FIRST, event ASC, salary_change.keyword DESC NULLS FIRST, lk ASC
4096+ | stats CLnBmEGor = sum(height.double) + sum(height.double) + avg(height.double), JLSxMYld = count(extra2) + max(extra2) + avg(extra2), `network.total_bytes_out` = min(language_code_integer), `version` = values(env), contains = min(languages.short) + min(languages.short)
4097+ | mv_expand `CLnBmEGor`
4098+ | dissect version "%{JLSxMYld} %{LTMJrburyt}"
4099+ | enrich languages_policy on LTMJrburyt
4100+ | inline stats QyCBayGHtAF = count(CLnBmEGor), yUMkeLezSN = present(contains + network.total_bytes_out), `JLSxMYld` = max(contains), GYbfUvbf = count(*)
4101+ ;
4102+
4103+ CLnBmEGor:double | network.total_bytes_out:integer | version:keyword | contains:integer | LTMJrburyt:keyword | language_name:keyword | QyCBayGHtAF:long | yUMkeLezSN:boolean | JLSxMYld:integer | GYbfUvbf:long
4104+ null | null | null | null | null | null | 0 | false | null | 1
4105+ ;
4106+
4107+
4108+ inlineStatsAfterPruningAggregate8
4109+ // https://github.com/elastic/elasticsearch/issues/135679
4110+ required_capability: inline_stats_double_release_fix
4111+
4112+ from dense_vector,airport_city_boundaries
4113+ | eval kMvNZVQSH = -4048759096317256968, GzAYNHaHuIS = 4262770411405329967, EwPpQFmOPoB = "lkdgnbTrBT", `abbrev` = "LiXI"
4114+ | keep `city`, `kMvNZVQSH`, GzAYNHaHuIS, city_boundary, EwPpQFmOPoB, `city_boundary`, `id`, kMvNZVQSH, id, airport
4115+ | limit 6888
4116+ | keep `kMvNZVQSH`, EwPpQFmOPoB, city, `id`, kMvNZVQSH
4117+ | stats `EwPpQFmOPoB2` = min(id), `EwPpQFmOPoB3` = count(*), kZiJPhNZ = count(id), ErGhdKhdv = count_distinct(city), EwPpQFmOPoB = min(id)
4118+ | eval ErGhdKhdv = null, fHSyxniFCS = -710891486, ErGhdKhdv = -1104488048, zdxdQdVIyFh = -1579062572, `kZiJPhNZ` = null, SzmOySyUh = null, eWVVRiwP = 1092261898855405071, nUxVhGhcpkiV = true, RvqGioBAAzYs = 169356242
4119+ | eval `kZiJPhNZ` = "gWJHDTcDMjRVSnlzSX", lxLgaagX = 4700531997851493340, `kZiJPhNZ` = false
4120+ | keep `zdxdQdVIyFh`
4121+ | inline stats `zdxdQdVIyFh` = count(*), WbWVJnYJ = count(*), zdxdQdVIyFh2 = max(zdxdQdVIyFh), uKjfeKTfaH = max(zdxdQdVIyFh), QpovVxjMWSjh = min(zdxdQdVIyFh)
4122+ ;
4123+
4124+ zdxdQdVIyFh:long | WbWVJnYJ:long | zdxdQdVIyFh2:integer | uKjfeKTfaH:integer | QpovVxjMWSjh:integer
4125+ 1 | 1 | -1579062572 | -1579062572 | -1579062572
4126+ ;
4127+
4128+
4129+ inlineStatsAfterPruningAggregate9
4130+ required_capability: inline_stats_double_release_fix
4131+
4132+ from employees
4133+ | stats m = count(emp_no)
4134+ | eval c = 0
4135+ | keep c
4136+ | inline stats c = count(*)
4137+ ;
4138+
4139+ c:long
4140+ 1
4141+ ;
0 commit comments