-
Notifications
You must be signed in to change notification settings - Fork 141
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] Subquery aliasing doesn't work with ` characters #550
Comments
I can reproduce the issue by ODS sample data in playground:
I suspect this issue is the root cause of other subquery issue:
Because I tested complicated subquery in FROM clause without back quoted alias, I see no problem and all outer grouping and sorting can be done in memory. Probably we can update the limitation doc: https://github.com/opensearch-project/sql/blob/main/docs/user/limitations/limitations.rst#subqueries-in-the-from-clause
|
Analyzing failure caused fall back to legacy which throws ClassCastException due to unsupported FROM subquery with aggregation. The detailed error is: "The qualifier [a] of qualified name [a.Origin] must be an field name, index name or its alias". The reason may be visitSubqueryRelation doesn't push alias name to symbol table. |
What is the bug?
Subquery aliasing doesn't work with ` characters.
How can one reproduce the bug?
Steps to reproduce the behavior:
What is the expected behavior?
Behaviour should match if the alias of the inner query is just
a
which is a valid result.What is your host/environment?
The text was updated successfully, but these errors were encountered: