You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
Exception is thrown from plugin for a query with SELECT trying to convert a boolean field to integer.
POST _opendistro/_sql
{
"query": """
SELECT CAST(Cancelled AS INT)
FROM kibana_sample_data_flights
"""
}
{
"error": {
"reason": "Error occurred in Elasticsearch engine: all shards failed",
"details": """Shard[0]: ScriptException[runtime error]; nested: NumberFormatException[For input string: "false"];
For more details, please send request for Json format to see the raw response from elasticsearch engine.""",
"type": "SearchPhaseExecutionException"
},
"status": 400
}
The text was updated successfully, but these errors were encountered:
It seems our implementation always assumes the source type is double type when target is INT/LONG/FLOAT.
MySQL example:
SELECT CAST(TRUE AS SIGNED);
CAST(TRUE AS SIGNED)
-------------------------
1
SELECT CAST(FALSE AS SIGNED);
CAST(FALSE AS SIGNED)
-------------------------
0
Exception is thrown from plugin for a query with SELECT trying to convert a boolean field to integer.
The text was updated successfully, but these errors were encountered: