Skip to content

[FEATURE] [PPL] Add support to reserved keywords in PPL #1318

Closed

Description

@mengweieric

Is your feature request related to a problem?
Currently for PPL query, the backtick `` has to be added to surround a reserved keyword in order for query engine to understand. Request to add reserved keyword support.

What solution would you like?
Query contains reserved keys do not need backtick just like any other non-reserved keywords

Do you have any additional context?
Example:

source = sample-data | stats count() by `index` --> index is reserved key and has to be surrounded with backtick to work

// Ideally just 

source = sample-data | stats count() by index

Activity

  1. added
    enhancement
    on Feb 2, 2023
  2. Yury-Fridlyand commented on Feb 2, 2023

    @Yury-Fridlyand
    Collaborator

    Related to #672, #712 and similar issues. keywordsCanBeId list should be extended in grammar files.

  3. anirudha commented on Feb 2, 2023

    @anirudha
    Collaborator

    whats constitues a reserved keyword? how do we define what is reserved

  4. added
    PPL
    on Feb 3, 2023
  5. penghuo commented on Feb 6, 2023

    @penghuo
    Collaborator

    backport to 2.5. #1324

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

    PPLenhancementv2.6.0

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions