@@ -3990,3 +3990,179 @@ 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+ inlineStatsAfterPruningAggregate7
4109+ // https://github.com/elastic/elasticsearch/issues/135679
4110+ required_capability: inline_stats_double_release_fix
4111+ required_capability: join_lookup_v12
4112+ required_capability: fork_v9
4113+
4114+ from app_log*
4115+ | FORK (where false OR NOT true) (where true) (where true) (where false OR true) (where false) (where true | mv_expand @timestamp)
4116+ | WHERE _fork == "fork2"
4117+ | DROP _fork
4118+ | rename service_id as name_str
4119+ | lookup join multi_column_joinable_lookup on name_str
4120+ | inline stats `is_active_bool` = count(id_int) + max(id_int), siofAMlpoHvh = max(id_int) + max(id_int) + max(id_int), `message` = present(other1), `id_int` = max(id_int)
4121+ | stats `message` = count(is_active_bool), id_int2 = median(is_active_bool), `siofAMlpoHvh` = count(*), `id_int` = max(id_int)
4122+ | eval NUtENNcs = message, message = "zaYFcCTy", id_int2 = null, VizcTbjMnBlQ = siofAMlpoHvh, siofAMlpoHvh = siofAMlpoHvh + siofAMlpoHvh + siofAMlpoHvh, gPzLgKdLfZ = null, `message` = 1099438720, sdsrveQOoi = -2373351299779434224, hpxNweCm = false, PwyOmHforRKI = -2230544247357512169
4123+ | stats VizcTbjMnBlQ = count(*), siofAMlpoHvh2 = median(sdsrveQOoi) + max(sdsrveQOoi), DUuKdsGgU = avg(PwyOmHforRKI) + count(PwyOmHforRKI), `gPzLgKdLfZ` = present(sdsrveQOoi + VizcTbjMnBlQ + PwyOmHforRKI), `siofAMlpoHvh` = count(sdsrveQOoi) + max(sdsrveQOoi)
4124+ | limit 61
4125+ | inline stats gPzLgKdLfZ = sum(VizcTbjMnBlQ), `siofAMlpoHvh2` = count(*), zvgqSiVGqli = max(VizcTbjMnBlQ), WFjgBzYRXwa = median(VizcTbjMnBlQ) + count(VizcTbjMnBlQ) + avg(VizcTbjMnBlQ)
4126+ | keep `VizcTbjMnBlQ`
4127+ | inline stats wXPJguff = median(VizcTbjMnBlQ) + avg(VizcTbjMnBlQ) + max(VizcTbjMnBlQ)
4128+ ;
4129+
4130+ VizcTbjMnBlQ:long | wXPJguff:double
4131+ 1 | 3.0
4132+ ;
4133+
4134+
4135+ inlineStatsAfterPruningAggregate8
4136+ // https://github.com/elastic/elasticsearch/issues/135679
4137+ required_capability: inline_stats_double_release_fix
4138+
4139+ from dense_vector,airport_city_boundaries
4140+ | eval kMvNZVQSH = -4048759096317256968, GzAYNHaHuIS = 4262770411405329967, EwPpQFmOPoB = "lkdgnbTrBT", `abbrev` = "LiXI"
4141+ | keep `city`, `kMvNZVQSH`, GzAYNHaHuIS, city_boundary, EwPpQFmOPoB, `city_boundary`, `id`, kMvNZVQSH, id, airport
4142+ | limit 6888
4143+ | keep `kMvNZVQSH`, EwPpQFmOPoB, city, `id`, kMvNZVQSH
4144+ | stats `EwPpQFmOPoB2` = min(id), `EwPpQFmOPoB3` = count(*), kZiJPhNZ = count(id), ErGhdKhdv = count_distinct(city), EwPpQFmOPoB = min(id)
4145+ | eval ErGhdKhdv = null, fHSyxniFCS = -710891486, ErGhdKhdv = -1104488048, zdxdQdVIyFh = -1579062572, `kZiJPhNZ` = null, SzmOySyUh = null, eWVVRiwP = 1092261898855405071, nUxVhGhcpkiV = true, RvqGioBAAzYs = 169356242
4146+ | eval `kZiJPhNZ` = "gWJHDTcDMjRVSnlzSX", lxLgaagX = 4700531997851493340, `kZiJPhNZ` = false
4147+ | keep `zdxdQdVIyFh`
4148+ | inline stats `zdxdQdVIyFh` = count(*), WbWVJnYJ = count(*), zdxdQdVIyFh2 = max(zdxdQdVIyFh), uKjfeKTfaH = max(zdxdQdVIyFh), QpovVxjMWSjh = min(zdxdQdVIyFh)
4149+ ;
4150+
4151+ zdxdQdVIyFh:long | WbWVJnYJ:long | zdxdQdVIyFh2:integer | uKjfeKTfaH:integer | QpovVxjMWSjh:integer
4152+ 1 | 1 | -1579062572 | -1579062572 | -1579062572
4153+ ;
4154+
4155+
4156+ inlineStatsAfterPruningAggregate9
4157+ required_capability: inline_stats_double_release_fix
4158+
4159+ from employees
4160+ | stats m = count(emp_no)
4161+ | eval c = 0
4162+ | keep c
4163+ | inline stats c = count(*)
4164+ ;
4165+
4166+ c:long
4167+ 1
4168+ ;
0 commit comments