Open FreCap opened 3 years ago
Thanks for reporting the issue! Will investigate.
In several points in code only <>
is defined which might be the cause I get:
{
"es_error_json": {
"details": "Unsupported operation: !=",
"reason": "Invalid SQL query",
"type": "SqlParseException"
},
Like in here:
I'm still wrapping my head around on the project and its code path before contributing actively. I see a lo of code under "legacy", is there some documentation on what is the faith of that code (being replaced/deprecated)?
@FreCap Yeah, basically we want to deprecate legacy
engine gradually. We encourage you to play with our new SQL query engine. For more details, recently I updated few docs including README and Dev Guide in this PR: https://github.com/opendistro-for-elasticsearch/sql/pull/820. More design docs regarding this improved query engine will be uploaded later. Thanks!
Thanks @dai-chen, just wondering, will nested() keyword be supported in the new engine? PS: the links in the PR are referring to your private space.
@FreCap Sorry, just realized that the branch was merged and deleted. You can check out: https://github.com/opendistro-for-elasticsearch/sql#experimental and https://github.com/opendistro-for-elasticsearch/sql/blob/develop/docs/developing.rst. Yeah, nested field query is an important feature. Previously, there are quite a few issues for this support in legacy. We're evaluating and will add much better support to the new engine too. Thanks!
Creating a test I noticed that in nested the symbol <> is confusing since it is LessThanOrGreater while != is NotEqual: