-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Closed
Labels
:Analytics/ES|QLAKA ESQLAKA ESQL>bugTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)Meta label for analytical engine team (ESQL/Aggs/Geo)
Description
row foo = 10
| stats field_1 = max(foo), this = count(*), field_2 = max(foo) by foo
| rename this AS field_2
| keep field_1, field_2
| eval field_2 = 1, field_1 = 1
foo | field_1 | field_2
---------------+---------------+---------------
10 |1 |1
foo shouldn't be there.
Interestingly, if you try to use the wrong column, the query will fail:
row foo = 10
| stats field_1 = max(foo), this = count(*), field_2 = max(foo) by foo
| rename this AS field_2
| keep field_1, field_2
| eval field_2 = 1, field_1 = 1, bar = foo
{
"error": {
"root_cause": [
{
"type": "verification_exception",
"reason": "Found 1 problem\nline 1:176: Unknown column [foo]"
}
],
"type": "verification_exception",
"reason": "Found 1 problem\nline 1:176: Unknown column [foo]"
},
"status": 400
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
:Analytics/ES|QLAKA ESQLAKA ESQL>bugTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)Meta label for analytical engine team (ESQL/Aggs/Geo)