iotdb icon indicating copy to clipboard operation
iotdb copied to clipboard

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

Open miantalha45 opened this issue 9 months ago • 3 comments

Search before asking

  • [x] 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?

  • [x] I'm willing to submit a PR!

miantalha45 avatar Feb 03 '26 14:02 miantalha45

Hi, this is your first issue in IoTDB project. Thanks for your report. Welcome to join the community!

github-actions[bot] avatar Feb 03 '26 14:02 github-actions[bot]

I've submitted a PR to fix this: #17171

PDGGK avatar Feb 05 '26 10:02 PDGGK

@PDGGK you can check i have tick the checkbox for fixing this issue. so please close your pull request.

miantalha45 avatar Feb 07 '26 11:02 miantalha45