influxdata / influxdata/influxdb

Improve error message: unsupported input type for mean aggregate: string

Open
#23,321 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

__Proposal:__
The error message should add more details to guide diagnosis:

unsupported input type for mean aggregate: string

__Current behavior:__
Error message shown in Grafana doesn't give guidance as to what field causes/caused the problem.

__Desired behavior:__
Either show field or query or value that is being aggregated.

__Use case:__
Diagnose Grafana dashboard errors. Without aggregation the query works on limited data. With aggregation and more data the query fails for unclear reason.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Search for the exact error text, then trace the mean aggregate path and its tests to determine what field, query, or value is available for diagnostic context. Done means the error identifies the input that caused the unsupported string type and the relevant tests cover the new message.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
databases
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.