-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Open
Labels
:Analytics/ES|QLAKA ESQLAKA ESQL>enhancementTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)Meta label for analytical engine team (ESQL/Aggs/Geo)
Description
Description
Today, when using SORT with strings (keywords) it takes into account non-alphanumeric (punctual) characters (ex: ( or ") and sorts these first.
Example:
ROW example = ["abc", "def", "\"ghij", "(x)yz"]
| MV_EXPAND example
| SORT example
Gets you:
{
"rawResponse": {
"columns": [
{
"name": "example",
"type": "keyword"
}
],
"values": [
[
"\"ghij"
],
[
"(x)yz"
],
[
"abc"
],
[
"def"
]
]
}
}In some other systems (ex: Linux ls command), it's possible to ignore these characters and only sort on the alphanumeric values.
It'd be nice to have the ability to configure this within ES|QL.
Metadata
Metadata
Assignees
Labels
:Analytics/ES|QLAKA ESQLAKA ESQL>enhancementTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)Meta label for analytical engine team (ESQL/Aggs/Geo)