Skip to content

Support subqueries starting with SHOW #404

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

Open
joshuali925 opened this issue Jan 31, 2022 · 0 comments
Open

Support subqueries starting with SHOW #404

joshuali925 opened this issue Jan 31, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@joshuali925
Copy link
Member

Is your feature request related to a problem? Please describe.
When using ODBC driver with other softwares, queries might be transformed. For example SHOW TABLES LIKE % in Tableau becomes

SELECT *
FROM (
  SHOW TABLES LIKE %
) `Custom SQL Query`
LIMIT 1

And it is not currently supported

  "error": {
    "reason": "Invalid SQL query",
    "details": "ERROR. token : SHOW, pos : 22",
    "type": "ParserException"
  },

Describe the solution you'd like
https://github.com/opensearch-project/sql/blob/3fd8ebf78eeab6dbe8416d697434a21485dd95b9/sql/src/main/antlr/OpenSearchSQLParser.g4#L124-126
Currently subquery can only be select ..., add more queries support so SHOW ... will work in subqueries.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@joshuali925 joshuali925 added the enhancement New feature or request label Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant