Skip to content

[BUG] PPLTypeChecker not work on aggregation functions #4000

Closed

Description

@LantaoJin

What is the bug?
PPLTypeChecker not work on aggregation functions:

How can one reproduce the bug?

PUT test001
{
    "mappings" : {
        "properties" : {
            "key" : {
                "type" : "keyword"
            },
            "text" : {
                "type" : "text"
            }
        }
    }
}
PUT test001/_doc/1
{
  "key": "abc",
  "text": "def"
}

POST /_plugins/_ppl/
{
  "query": """
  source=test001 | stats sum(text) 
  """
}
POST /_plugins/_ppl/
{
  "query": """
  source=test001 | stats sum(key) 
  """
}

Queries failed in codegen.

What is the expected behavior?
Throw error message that the sum() accepts numeric types only.

Activity

  1. added
    bug
    and removed on Aug 7, 2025
  2. LantaoJin commented on Aug 7, 2025

    @LantaoJin
    MemberAuthor

    @yuancu can you take a look the issue?

  3. yuancu commented on Aug 7, 2025

    @yuancu
    Collaborator
  4. added
    PPL
    on Aug 11, 2025
  5. moved this from Not Started to In progress in PPL Trackeron Aug 11, 2025
  6. added
    calcite
    on Aug 11, 2025
  7. moved this from In progress to Done in PPL Trackeron Aug 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

PPLbugcalcite

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions