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

Description
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
}