Skip to content

Commit

Permalink
fix: index name parsing for datasources
Browse files Browse the repository at this point in the history
To identify datasources in the index qualified names, they need to
be parsed into parts (separated only by dots). clusterQualifiedName
can't contain custom datasources, hence the distinction.

Signed-off-by: Sean Kao <seankao@amazon.com>
  • Loading branch information
seankao-az committed Apr 18, 2023
1 parent 10d5c9e commit 4f4d47d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ppl/src/main/antlr/OpenSearchPPLParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,8 @@ tableSource
;

clusterTableSource
: clusterQualifiedName
: qualifiedName
| clusterQualifiedName
| ID_DATE_SUFFIX
;

Expand Down Expand Up @@ -600,7 +601,7 @@ qualifiedName
;

clusterQualifiedName
: (ident COLON)? ident (DOT ident)*
: ident COLON ident (DOT ident)*
;

wcQualifiedName
Expand Down

0 comments on commit 4f4d47d

Please sign in to comment.