Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Relevance Search Query Not Working With Nested Function #1488

Closed
forestmvey opened this issue Mar 30, 2023 · 0 comments
Closed

[BUG] Relevance Search Query Not Working With Nested Function #1488

forestmvey opened this issue Mar 30, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@forestmvey
Copy link
Collaborator

What is the bug?
Using a relevance based search function in the WHERE clause with the nested function in one SELECT clause fails the query.

"query":"SELECT nested(message.info), someField FROM nested_objects WHERE match(someField, 'a');"
-------------------------------------------------------------------------------------------------------
{
  "error": {
    "reason": "Invalid SQL query",
    "details": "syntax error, expect AGAINST, actual EOF",
    "type": "ParserException"
  },
  "status": 400
}

While both these queries succeed individually, together the query fails.

"query":"SELECT someField FROM nested_objects WHERE match(someField, 'a');"
"query":"SELECT nested(message.info) FROM nested_objects;"

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Push query into SQL plugin - "SELECT nested(message.info), someField FROM nested_objects WHERE match(someField, 'a');"
  2. See failure results.

What is the expected behavior?
The nested function should return a valid field when used in a SELECT clause with a Relevance based search function in the WHERE clause.

What is your host/environment?

  • OS: MacOS
  • Version 13.2.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants