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
What is the bug?
When the nested function is used in the SELECT clause there is no use for the condition parameter. The parameter is accepted by the SQL plugin but fails to provide any use.
Both of these queries provide the same explain results:
The query that uses the condition parameter produces this output:
{
"query":"SELECT nested(message.info, message.info = 'a') FROM nested_objects;"
------------------------------------------------------------------------------------
"error": {
"reason": "Error occurred in OpenSearch engine: all shards failed",
"details": "Shard[0]: [nested_objects/ZBVd7ZztRHqLSD0XW_vVNA] QueryShardException[failed to create query: [nested] failed to find nested object under path [message.info]]; nested: IllegalStateException[[nested] failed to find nested object under path [message.info]];\n\nFor more details, please send request for Json format to see the raw response from OpenSearch engine.",
"type": "SearchPhaseExecutionException"
},
"status": 400
}
The query without the condition parameter produces this output:
It appears that the condition parameter for the nested function has no use when used in the SELECT clause.
How can one reproduce the bug?
Steps to reproduce the behavior:
Enter query into SQL plugin - "SELECT nested(message.info, message.info = 'a') FROM nested_objects;"
See error.
What is the expected behavior?
SQL plugin should not accept the condition parameter for the nested function when the function is used in the SELECT clause.
What is your host/environment?
OS: MacOS
Version 13.2.1
The text was updated successfully, but these errors were encountered:
What is the bug?
When the
nested
function is used in the SELECT clause there is no use for thecondition
parameter. The parameter is accepted by the SQL plugin but fails to provide any use.Both of these queries provide the same explain results:
The query that uses the condition parameter produces this output:
The query without the condition parameter produces this output:
It appears that the
condition
parameter for the nested function has no use when used in theSELECT
clause.How can one reproduce the bug?
Steps to reproduce the behavior:
What is the expected behavior?
SQL plugin should not accept the
condition
parameter for thenested
function when the function is used in theSELECT
clause.What is your host/environment?
The text was updated successfully, but these errors were encountered: