Skip to content

[BUG] PPL query return undefined data type when access inner json object #4905

Closed as duplicate

Description

@penghuo

What is the bug?
PPL query return undefined data type when access inner json object

How can one reproduce the bug?

###
PUT {{baseUrl}}/log00001
Content-Type: application/x-ndjson

{
  "mappings": {
    "properties": {
      "log": {
        "type": "object",
        "enabled": false
      }
    }
  }
}


###
POST {{baseUrl}}/log00001/_bulk
Content-Type: application/x-ndjson

{"index": {}}
{"log": {"c": {"d": 2}}}

###
POST {{baseUrl}}/log00001/_bulk
Content-Type: application/x-ndjson

{"index": {}}
{"log": {"a":1, "c": {"d": 2}}}

###
POST {{baseUrl}}/_plugins/_ppl
Content-Type: application/x-ndjson

{
  "query": "source=log00001 | fields log.a"
}
  • Results type is undefined.
{
  "schema": [
    {
      "name": "log.a",
      "type": "undefined"
    }
  ],
  "datarows": [
    [
      null
    ],
    [
      3
    ]
  ],
  "total": 2,
  "size": 2
}

What is the expected behavior?
Alt-1, derived type from return dataset.
Alt-2, return ANY type.

Activity

  1. added
    bug
    PPL
    on Dec 4, 2025
  2. LantaoJin commented on Dec 8, 2025

    @LantaoJin
    Member

    replied in #4906. the same issue

  3. self-assigned this
    on Dec 15, 2025
  4. LantaoJin commented on Jan 12, 2026

    @LantaoJin
    Member

    issue should be resolved by #4984

  5. moved this from Not Started to Done in PPL Trackeron Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

PPLbug

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions