Skip to content

Fix aggregations on dimension fields #135335

@kkrik-es

Description

@kkrik-es

The following query is not supported:

TS kibana_sample_data_logstsdb 
| STATS results = count(agent.keyword) by TBUCKET(1day)

Unexpected error from Elasticsearch: unresolved_exception - Invalid call to dataType on an unresolved object ?LASTOVERTIME_$1

The issue is that we try to use last_over_time implicitly, even though agent.keyword is a dimension. Here, this should work as a regular agg in FROM.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions