Skip to content

Some Aggregation commands throw error message when 'count' is used as a field name #853

@Abigael-JT

Description

@Abigael-JT

Describe the bug

%dpl
| makeresults count=5
| eval count = 123
| stats sum(count)

Returns:
java.lang.IllegalStateException: Parser failure on line 4, column 12 due to mismatched input 'count' expecting {METHOD_AGGREGATE_DQSTRING, METHOD_AGGREGATE_STRING_MATCH, EVAL_LANGUAGE_MODE_PARENTHESIS_L, EVAL_LANGUAGE_MODE_INTEGER, EVAL_LANGUAGE_MODE_DECIMAL, EVAL_LANGUAGE_MODE_EXCLAMATION, EVAL_LANGUAGE_MODE_NOT, ..... }

Expected behavior

Fields named after aggregation methods like count, avg etc, should not cause any issues when used with aggregation commands.

How to reproduce

Screenshots

Software version

pth_10 version: 12.1.1-DPF_02_5.0.0-3
pth_03 version: 9.4.1

Desktop (please complete the following information if relevant):

  • OS:
  • Browser:
  • Version:

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions