Skip to content

[BUG] dedup raise 500 error when object attribute is specified #4339

@ykmr1224

Description

@ykmr1224

What is the bug?
dedup command raise 500 error when object attribute is specified.
Sample query:

source=logs-* | head 10 | dedup attributes

where attributes is struct like:

      {
        "cluster": {
          "name": "xyz-cluster1-ci-prod-us-east-1",
          "region": "us-east-1",
          "env": "prod"
        },
        "log": {
          "file": {
            "path": "/var/log/xyz/abc.log"
          }
        },
        "obs_body_length": 146
      },

error:

{
  "error": {
    "reason": "There was internal problem at backend",
    "details": "java.sql.SQLException: exception while executing query: class java.util.LinkedHashMap cannot be cast to class java.lang.Comparable (java.util.LinkedHashMap and java.lang.Comparable are in module java.base of loader 'bootstrap')",
    "type": "RuntimeException"
  },
  "status": 500
}

How can one reproduce the bug?
run ppl query: source=logs-* | head 10 | dedup attributes

What is the expected behavior?
It should return invalid query error with 4xx status code.

What is your host/environment?

  • OS: [e.g. iOS]
  • Version [e.g. 22] 3.1
  • Plugins

Do you have any screenshots?
If applicable, add screenshots to help explain your problem.

Do you have any additional context?
Add any other context about the problem.

Metadata

Metadata

Assignees

Labels

PPLPiped processing languagebugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions