-
Notifications
You must be signed in to change notification settings - Fork 186
Support SELECT * and FROM clause in new SQL parser #573
Support SELECT * and FROM clause in new SQL parser #573
Conversation
sql/src/test/java/com/amazon/opendistroforelasticsearch/sql/sql/antlr/SQLSyntaxParserTest.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the change.
@dai-chen I am facing the same issue. I tried to enable 'opendistro.sql.engine.new.enabled' setting in open distro ES version 1.8.0. I got an error
Do I have to update to version 1.9.0 to enable new SQL engine? |
Thanks for reaching out! This setting and new query engine is available in 1.9.0.1+: https://github.com/opendistro-for-elasticsearch/sql/blob/opendistro-1.9.0.1/docs/user/admin/settings.rst#opendistro-sql-engine-new-enabled. Please try to upgrade to 1.9.0.1 or latest 1.10. Thanks! |
@dai-chen Thank you for your reply! Latest docker image for open distro ES I can find is 1.9.0. I am not able to find 1.10. Am I missing something here? https://hub.docker.com/r/amazon/opendistro-for-elasticsearch/tags |
I can see other artifacts updated to 1.9.0.1 already. Could you try to check out 1.9.0.1 docker image? |
When I try to pull 1.9.0.1 it says not found.
However, I can see 1.9.0
Also, I don't see version 1.9.0.1 here https://hub.docker.com/r/amazon/opendistro-for-elasticsearch/tags. Am I doing something wrong? |
I see. Although other artifacts are available, it seems we haven't announced the 1.9.0.1 yet: https://opendistro.github.io/for-elasticsearch/blog/. Sorry for the confusion and please stay tune for the upcoming release. You should be able to enable and play with new query engine soon. |
Issue #, if available: #575, #504, #322
Description of changes: Change SQL grammar to integrate with new engine and support
SELECT *
andFROM
clause.Relation
node andQualifiedName
expression in AST builder.Testing: Add new UT and IT for different types of identifier (index name). Because of problem with date, text and keyword in JDBC driver, select * is not added to comparison test.
Note a major change on integration test: A new
integTestWithNewEngine
task is added to run PPL and new, legacy, comparison SQL ITs with new engine enabled. TheintegTest
depends on it and only runs legacy SQL ITs with new engine disabled. Because more and more SQL queries will start being handled by new engine afterFROM
clause added, this makes sure that our legacy ITs can work with/without new engine enabled.Documentation: Checked out MySQL, SQLServer and ANSI SQL and organize our doc in this way: https://github.com/dai-chen/sql/blob/support-select-all-from/docs/user/general/identifiers.rst
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.