Skip to content

Commit 1a1c587

Browse files
authored
add limited support to esql-limitations.asciidoc
1 parent 8893871 commit 1a1c587

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

docs/reference/esql/esql-limitations.asciidoc

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ include::processing-commands/limit.asciidoc[tag=limitation]
4646
{esql} does not yet support the following field types:
4747

4848
* TSDB metrics
49-
** `counter`
49+
** `counter` (<<limited-support-for-counter, limited support>>)
5050
** `position`
5151
** `aggregate_metric_double`
5252
* Date/time
@@ -68,6 +68,20 @@ include::processing-commands/limit.asciidoc[tag=limitation]
6868
** `rank_features`
6969
** `search_as_you_type`
7070

71+
[discrete]
72+
[[limited-support-for-counter]]
73+
[NOTE]
74+
====
75+
ES|QL allows limited interaction with the counter field types -- `counter_long`, `counter_integer`, and `counter_double` -- through explicit casting. Users can:
76+
77+
* Retrieve raw values without processing
78+
* Cast to the root numeric type (e.g., `to_long(a_long_counter)`)
79+
* Use these fields in the metrics rate aggregation
80+
81+
These capabilities provide partial support, intended for controlled use and to prevent misuse of cumulative metrics as regular numeric fields.
82+
83+
====
84+
7185
Querying a column with an unsupported type returns an error. If a column with an
7286
unsupported type is not explicitly used in a query, it is returned with `null`
7387
values, with the exception of nested fields. Nested fields are not returned at

0 commit comments

Comments
 (0)