[BUG] Unsupported function doesn't fail the query when the response format set to CSV or JSON #2681
Labels
bug
Something isn't working
catch-all acknowledged
Marks issues caught in catch-all triage for searchability
What is the bug?
When unsupported function is included in a query, current execution engine has to fallback to legacy SQL engine to verify whether the function comes from OpenSearch core. For example, query including
percentiles
is not supported in V2 and falling back to old SQL engine. If the function is also unsupported in OpenSearch core, it will throwThe following method is not supported in Schema: functionNotExisted
. That is the current expected behaviour.returns
However, when the response format set to CSV or JSON, the query will return results instead of throwing failure.
returns
How can one reproduce the bug?
Steps to reproduce the behavior:
What is the expected behavior?
Whatever the format type set, the query should fail with readable message.
What is your host/environment?
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
When CVS or JSON format is set,
CSVResultRestExecutor
orElasticDefaultRestExecutor
will be used to handle the query instead ofPrettyFormatRestExecutor
, but onlyPrettyFormatRestExecutor
have the logic to verify the field with a function currently.The text was updated successfully, but these errors were encountered: