OpenSearch/x-pack/plugin/sql
Marios Trivyzas a8a2a83d45
SQL: Fix grammar for `*` in arithm expressions (#34176)
Previously, parsing an arithmetic expression with `*` and no spaces,
e.g.: `2*i` threw a parsing exception as the grammar rule for
tableIdentifier was clashing with the rule for arithmetic operator `*`.

This issue comes already in the lexer and the left part of the
expression (in our example `2*`) was recognised as a
TABLE_IDENTIFIER token.

The solution adopted is to allow the `*` wildcard in the table name
only if it's surrounded with double quotes, e.g.: `"my*index"`

Closes: #33957
2018-10-02 11:47:42 +03:00
..
jdbc Clean up "unused variable" warnings (#31876) 2018-09-26 14:09:32 +02:00
sql-action SQL: Move away internally from JDBCType to SQLType (#33913) 2018-09-22 11:03:38 +03:00
sql-cli Different handling for security specific errors in the CLI. Fix for https://github.com/elastic/elasticsearch/issues/33230 (#33255) 2018-08-31 13:08:32 +03:00
sql-client Run forbidden api checks with runtimeJavaVersion (#32947) 2018-08-22 09:05:22 +03:00
sql-proto SQL: Move away internally from JDBCType to SQLType (#33913) 2018-09-22 11:03:38 +03:00
src SQL: Fix grammar for `*` in arithm expressions (#34176) 2018-10-02 11:47:42 +03:00
build.gradle Build: Rework shadow plugin configuration (#32409) 2018-08-21 20:03:28 -04:00