Skip to content

Fix a validation message in TimeSeriesGroupByAll - #139882

Merged
leontyevdv merged 7 commits into
elastic:mainfrom
leontyevdv:fix/group-by-all-message-only-grouping-functions-are-supported
Dec 22, 2025
Merged

leontyevdv merged 7 commits into
elastic:mainfrom
leontyevdv:fix/group-by-all-message-only-grouping-functions-are-supported

Conversation

@leontyevdv

Copy link
Copy Markdown
Contributor

Change a message that is used in the exception inside the validation loop: "Only grouping functions are supported (e.g. tbucket)."

Only grouping functions are supported (e.g. tbucket) for group-by-all
queries
@leontyevdv
leontyevdv requested review from a team and kkrik-es December 22, 2025 09:43
@leontyevdv leontyevdv self-assigned this Dec 22, 2025
@leontyevdv leontyevdv added >enhancement :StorageEngine/ES|QL Timeseries / metrics / logsdb capabilities in ES|QL v9.4.0 labels Dec 22, 2025
@elasticsearchmachine

Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

@elasticsearchmachine

Copy link
Copy Markdown
Collaborator

Hi @leontyevdv, I've created a changelog YAML for you.

@leontyevdv leontyevdv added the :Analytics/ES|QL AKA ESQL label Dec 22, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Dec 22, 2025
@elasticsearchmachine

Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto commit changes from spotless

@romseygeek romseygeek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

if (Functions.isGrouping(Alias.unwrap(grouping)) == false) {
throw new IllegalArgumentException(
"Cannot mix time-series aggregate and grouping attributes. Found [" + grouping.sourceText() + "]."
"Only grouping functions are supported (e.g. tbucket). Found [" + grouping.sourceText() + "]."

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe "... when the time series aggregation function [" + ts_agg + "] is not wrapped with another aggregation function.

It'd be nice to convey that this the only the case where the usual example of agg(ts_agg) is not used.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improved! Thanks!

Only grouping functions are supported (e.g. tbucket) for group-by-all
queries
…ouping-functions-are-supported' into fix/group-by-all-message-only-grouping-functions-are-supported
Only grouping functions are supported (e.g. tbucket) for group-by-all
queries
@leontyevdv
leontyevdv merged commit 8f62075 into elastic:main Dec 22, 2025
35 checks passed
@leontyevdv

Copy link
Copy Markdown
Contributor Author

💚 All backports created successfully

Status Branch Result
✅ 9.3

Questions ?

Please refer to the Backport tool documentation

leontyevdv added a commit to leontyevdv/elasticsearch that referenced this pull request Dec 22, 2025
Only grouping functions are supported (e.g. tbucket) for group-by-all
queries

(cherry picked from commit 8f62075)
elasticsearchmachine pushed a commit that referenced this pull request Dec 23, 2025
Only grouping functions are supported (e.g. tbucket) for group-by-all
queries

(cherry picked from commit 8f62075)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL >enhancement :StorageEngine/ES|QL Timeseries / metrics / logsdb capabilities in ES|QL Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) Team:StorageEngine v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants