Skip to content

[BUG] field name with dot is missing in output without fields command #3477

@LantaoJin

Description

@LantaoJin

What is the bug?
field name with dot (such as test.occupation) is missing in query output without fields command

How can one reproduce the bug?

PUT /ltjin-test1
{
  "mappings": {
    "properties": {
      "name": {
        "type": "keyword"
      },
      "test.occupation": {
        "type": "text"
      },
      "country": {
        "type": "text"
      },
      "salary": {
        "type": "integer"
      },
      "year": {
        "type": "integer"
      },
      "month": {
        "type": "integer"
      }
    }
  }
}
POST _bulk
{"index":{"_index" : "ltjin-test1","_id":"1"}}
{"name":"Jake","test.occupation":"Engineer","country":"England","salary":100000,"year":2023,"month":4}

the test.occupation field is missing in following query.

POST /_plugins/_ppl
{
  "query" : """
  source = ltjin-test1
  """
}

but we can output it by following query.

POST /_plugins/_ppl
{
  "query" : """
  source = ltjin-test1 | fields test.occupation
  """
}

What is the expected behavior?
the test.occupation field should output in query

POST /_plugins/_ppl
{
  "query" : """
  source = ltjin-test1
  """
}

should

What is your host/environment?

  • Version 2.19

Metadata

Metadata

Assignees

No one assigned

    Labels

    PPLPiped processing languagePriority-HighbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions