Skip to content

[Bug] Typo in constant name (AGGREGRATE → AGGREGATE) #17155

@miantalha45

Description

@miantalha45

Search before asking

  • I searched in the issues and found nothing similar.

Version

OS: macOS (darwin)
IoTDB: master branch

Describe the bug and provide the minimal reproduce step

There is a typo in the constant name used for time aggregation in the CLI: AGGREGRATE instead of AGGREGATE.
Location:
iotdb-client/cli/src/main/java/org/apache/iotdb/cli/AbstractCli.java — line 91: AGGREGRATE_TIME_LIST
iotdb-client/cli/src/main/java/org/apache/iotdb/cli/Cli.java — lines 188 and 203: usages of AGGREGRATE_TIME_LIST
Minimal steps:
Open AbstractCli.java and search for AGGREGRATE.
The constant and its usages use the misspelling "AGGREGRATE" instead of "AGGREGATE".
No runtime behavior change; this is a naming/code-quality fix.

What did you expect to see?

The constant and all references should use the correct spelling AGGREGATE (e.g. AGGREGATE_TIME_LIST), since it represents supported time aggregation operations.

What did you see instead?

The constant is named AGGREGRATE_TIME_LIST and is referenced as AGGREGRATE_TIME_LIST in Cli.java, so the misspelling "AGGREGRATE" appears in the codebase instead of "AGGREGATE".

Anything else?

This is a straightforward rename: constant and all references should be updated from AGGREGRATE_TIME_LIST to AGGREGATE_TIME_LIST. Any tests or docs that reference this name should be updated as well. No functional change intended.

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions