Skip to content

Support more orderless parameters for KEMANS and AD commands #462

Closed

Description

@jackiehanyang

Is your feature request related to a problem? Please describe.
Currently the KMEANS command works in this format (version 1.3):
{ "query": "source=xxx | fields xxx | kmeans 2"}

We can improve it by allowing more parameters and define a name to each parameter so parameters can be orderless. For example, the previous command now works in this format:
{ "query": "source=xxx | fields xxx | kmeans centroids=2"}

Describe the solution you'd like
Changing the Antlr parsing tree so it can takes more orderless parameters.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Activity

  1. added
    enhancement
    on Mar 4, 2022
  2. changed the title [-]Improve KEMANS command[/-] [+]Support more arguments for KEMANS and AD commands[/+] on Mar 8, 2022
  3. changed the title [-]Support more arguments for KEMANS and AD commands[/-] [+]Support more orderless parameters for KEMANS and AD commands[/+] on May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions