-
Notifications
You must be signed in to change notification settings - Fork 102
SQL Syntax Issue #177
Comments
Hi @mlrlite, can you clarify the versions in each situation? In one situation, it sounds like you're running the ODFE Docker image locally. Which version? In the other situation, when you say "AWS Open Distro," do you mean Amazon Elasticsearch Service? One of the RPM or Debian packages on EC2? Something else? Which version? The SQL plugin is constantly evolving, so I wouldn't be surprised if this was a bug in older versions that's since been fixed. |
My local has the following
Please let me know if there is anything else I can provide. |
Hi @mlrlite, it looks like your Docker cluster is running the "default" version of Elasticsearch, which doesn't have the ODFE plugins and instead has a proprietary SQL plugin. Did you install the ODFE SQL plugin manually on the Docker image? If you didn't and are instead using the proprietary plugin, that could absolutely cause the difference in behavior, as the two codebases have nothing in common. I just tested ODFE 1.3 vs. Amazon Elasticsearch Service, which is running an older version of the ODFE plugin, and the search results for your query were identical. |
I was able to use the aws open distro version locally and now both environments are identical. I am still facing the same issue with my original post |
Hey @mlrlite, are you saying that your local ODFE cluster and your AES domain are now behaving identically, but the behavior is undesirable? Or they behaving differently, and one behavior is desirable and the other isn't? If they're behaving the same, then it's likely just a SQL bug that we can report and investigate. If they're behaving differently, then there's more troubleshooting to do. |
Yes my local and aws are now in sync. Currently I believe we have narrowed the issue down to a SQL bug. Let me provide an example. With the normal elasticsearch docker install (not ODFE), the following returns me what I want (phrases starting with 'graphic') With ODFE, the same query returns me any words containing 'graphic'. It just seems the like statement isn't performing the sql like it should. My expectation is that when using |
Hi @mlrlite, awesome, thanks. That sounds like a bug on our end. I've reported it in the SQL repository here: opendistro-for-elasticsearch/sql#368 |
I am submitting the following to my elasticsearch instance. While my local docker instance returns my records starting with
graphic
, the AWS Open Distro returns me any records that containgraphic
. Is this something that can be addressed or work around provided.Sample Query
query="SELECT * FROM company_1 WHERE name LIKE 'graphic%'"
Thank You
The text was updated successfully, but these errors were encountered: