-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
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!