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.
Using Docker image amazon/opendistro-for-elasticsearch:1.1.0 Dataset: Flights sample data (loaded through Kibana) SQL Plugin version: 1.1.0.1
Example Query:
SELECT max(Origin) AS usr_Calculation_462181953493630977_nk FROM kibana_sample_data_flights
Result:
Raw response received: {
"error": {
"reason": "Invalid SQL query",
"details": "Function [MAX] cannot work with [KEYWORD]. Usage: MAX(NUMBER T) -> T",
"type": "SemanticAnalysisException"
},
"status": 400
}
Expectation:
Tableau, using other SQL connectors, allows users to use these functions on these types. Adding support for this in Elasticsearch will allow for full support for these functions when used through Tableau.
The text was updated successfully, but these errors were encountered:
This exception is thrown from the type checker in semantic analysis. Will disable it to see if we do have the support for max/min on String and Date. If so, that means the type check is too strict and needs to relax for this case. Otherwise we need to add the support before relaxing the restriction.
Just disabled semantic analysis but found ES max aggregation can only work with numeric value. Need to add support for this and add overloaded function spec to type checker in new parser.
Using Docker image
amazon/opendistro-for-elasticsearch:1.1.0
Dataset: Flights sample data (loaded through Kibana)
SQL Plugin version: 1.1.0.1
Example Query:
SELECT max(Origin) AS usr_Calculation_462181953493630977_nk FROM kibana_sample_data_flights
Result:
Raw response received: {
"error": {
"reason": "Invalid SQL query",
"details": "Function [MAX] cannot work with [KEYWORD]. Usage: MAX(NUMBER T) -> T",
"type": "SemanticAnalysisException"
},
"status": 400
}
Expectation:
Tableau, using other SQL connectors, allows users to use these functions on these types. Adding support for this in Elasticsearch will allow for full support for these functions when used through Tableau.
The text was updated successfully, but these errors were encountered: