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
Adding filter in JSON request breaks function use. Removing the filter fixes the issue. Note how I'm not using format=json here.
Request:
POST /_plugins/_sql
{
"query": "SELECT * FROM my_index WHERE DATE < current_date()",
"filter": {
"term": {
"TENANTID": "tenant1"
}
}
}
Response:
{
"error": {
"reason": "There was internal problem at backend",
"details": "The following query method is not supported: current_date",
"type": "SqlParseException"
},
"status": 500
}
I ran into the following 2 issues running OS 2.15 on AWS, as well as OS 2.17 locally.
Problem 1
When specifying
format=json
, functions do not work. Removingformat=json
fixes issue.Request:
Response:
Trace:
Problem 2
Adding
filter
in JSON request breaks function use. Removing thefilter
fixes the issue. Note how I'm not usingformat=json
here.Request:
Response:
Trace:
Setup
Index
Documents
The text was updated successfully, but these errors were encountered: