Skip to content

Commit

Permalink
ESQL: Readd union types capability to indirect tests (#119785)
Browse files Browse the repository at this point in the history
A fortward port of #119776.
  • Loading branch information
GalLalouche authored Jan 8, 2025
1 parent cee2360 commit a16f89d
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1375,6 +1375,7 @@ client_ip:ip | event_duration:long | message:keyword | @timestamp:keywo
# Once INLINESTATS supports expressions in agg functions and groups, convert the group in the inlinestats

multiIndexIndirectUseOfUnionTypesInSort
required_capability: union_types
FROM sample_data, sample_data_ts_long
| SORT client_ip ASC
| LIMIT 1
Expand All @@ -1397,6 +1398,7 @@ FROM sample_data, sample_data_ts_long
;

multiIndexIndirectUseOfUnionTypesInRename
required_capability: union_types
required_capability: union_types_fix_rename_resolution
FROM sample_data, sample_data_ts_long
| RENAME message AS event_message
Expand All @@ -1409,6 +1411,7 @@ FROM sample_data, sample_data_ts_long
;

multiIndexIndirectUseOfUnionTypesInKeep
required_capability: union_types
FROM sample_data, sample_data_ts_long
| KEEP client_ip, event_duration, message
| SORT client_ip ASC
Expand All @@ -1420,6 +1423,7 @@ client_ip:ip | event_duration:long | message:keyword
;

multiIndexIndirectUseOfUnionTypesInWildcardKeep
required_capability: union_types
required_capability: union_types_fix_rename_resolution
FROM sample_data, sample_data_ts_long
| KEEP *
Expand All @@ -1432,6 +1436,7 @@ FROM sample_data, sample_data_ts_long
;

multiIndexIndirectUseOfUnionTypesInWildcardKeep2
required_capability: union_types
required_capability: union_types_fix_rename_resolution
FROM sample_data, sample_data_ts_long
| KEEP *e*
Expand Down Expand Up @@ -1468,6 +1473,7 @@ client_ip:ip | event_duration:long | message:keyword
;

multiIndexIndirectUseOfUnionTypesInWildcardDrop
required_capability: union_types
required_capability: union_types_fix_rename_resolution
FROM sample_data, sample_data_ts_long
| DROP *time*
Expand All @@ -1480,6 +1486,7 @@ client_ip:ip | event_duration:long | message:keyword
;

multiIndexIndirectUseOfUnionTypesInWhere
required_capability: union_types
FROM sample_data, sample_data_ts_long
| WHERE message == "Disconnected"
;
Expand All @@ -1490,6 +1497,7 @@ FROM sample_data, sample_data_ts_long
;

multiIndexIndirectUseOfUnionTypesInDissect
required_capability: union_types
FROM sample_data, sample_data_ts_long
| DISSECT message "%{foo}"
| SORT client_ip ASC
Expand All @@ -1501,6 +1509,7 @@ FROM sample_data, sample_data_ts_long
;

multiIndexIndirectUseOfUnionTypesInGrok
required_capability: union_types
FROM sample_data, sample_data_ts_long
| GROK message "%{WORD:foo}"
| SORT client_ip ASC
Expand All @@ -1512,6 +1521,7 @@ FROM sample_data, sample_data_ts_long
;

multiIndexIndirectUseOfUnionTypesInEnrich
required_capability: union_types
required_capability: enrich_load
FROM sample_data, sample_data_ts_long
| EVAL client_ip = client_ip::keyword
Expand All @@ -1525,6 +1535,7 @@ FROM sample_data, sample_data_ts_long
;

multiIndexIndirectUseOfUnionTypesInStats
required_capability: union_types
FROM sample_data, sample_data_ts_long
| STATS foo = max(event_duration) BY client_ip
| SORT client_ip ASC
Expand All @@ -1538,6 +1549,7 @@ foo:long | client_ip:ip
;

multiIndexIndirectUseOfUnionTypesInInlineStats-Ignore
required_capability: union_types
required_capability: inlinestats
FROM sample_data, sample_data_ts_long
| INLINESTATS foo = max(event_duration)
Expand All @@ -1550,6 +1562,7 @@ FROM sample_data, sample_data_ts_long
;

multiIndexIndirectUseOfUnionTypesInLookup-Ignore
required_capability: union_types
required_capability: lookup_v4
FROM sample_data, sample_data_ts_long
| SORT client_ip ASC
Expand All @@ -1563,6 +1576,7 @@ FROM sample_data, sample_data_ts_long
;

multiIndexIndirectUseOfUnionTypesInMvExpand
required_capability: union_types
FROM sample_data, sample_data_ts_long
| EVAL foo = MV_APPEND(message, message)
| SORT client_ip ASC
Expand Down

0 comments on commit a16f89d

Please sign in to comment.