Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

"select column from table group by column order by column LIMIT 5" is not supported #643

@rupal-bq

Description

@rupal-bq

Following query fails for columns with data type text,nested and object
Query:

"select `type_text` from `kibana_sample_data_types` group by `type_text` order by `type_text` LIMIT 5"

Response:

{
  "error": {
    "reason": "Error occurred in Elasticsearch engine: all shards failed",
    "details": "Shard[0]: java.lang.IllegalArgumentException: field [type_object] isn't a leaf field\n\nFor more details, please send request for Json format to see the raw response from elasticsearch engine.",
    "type": "SearchPhaseExecutionException"
  },
  "status": 400
}

The same query works for data type keyword.
Query:

"select `type_keyword` from `kibana_sample_data_types` group by `type_keyword` order by `type_keyword` LIMIT 5"

Response:

{
  "schema": [
    {
      "name": "type_keyword",
      "type": "keyword"
    }
  ],
  "total": 2,
  "datarows": [
    [
      "goodbye"
    ],
    [
      "hello"
    ]
  ],
  "size": 2,
  "status": 200
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    SQLbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions