-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tags to the emr jobs based on the query types
Signed-off-by: Vamsi Manohar <[email protected]>
- Loading branch information
Showing
24 changed files
with
3,601 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
grammar FlintSparkSqlExtensions; | ||
|
||
import SparkSqlBase; | ||
|
||
|
||
// Flint SQL Syntax Extension | ||
|
||
singleStatement | ||
: statement SEMICOLON* EOF | ||
; | ||
|
||
statement | ||
: skippingIndexStatement | ||
| coveringIndexStatement | ||
; | ||
|
||
skippingIndexStatement | ||
: createSkippingIndexStatement | ||
| refreshSkippingIndexStatement | ||
| describeSkippingIndexStatement | ||
| dropSkippingIndexStatement | ||
; | ||
|
||
createSkippingIndexStatement | ||
: CREATE SKIPPING INDEX ON tableName | ||
LEFT_PAREN indexColTypeList RIGHT_PAREN | ||
(WITH LEFT_PAREN propertyList RIGHT_PAREN)? | ||
; | ||
|
||
refreshSkippingIndexStatement | ||
: REFRESH SKIPPING INDEX ON tableName | ||
; | ||
|
||
describeSkippingIndexStatement | ||
: (DESC | DESCRIBE) SKIPPING INDEX ON tableName | ||
; | ||
|
||
dropSkippingIndexStatement | ||
: DROP SKIPPING INDEX ON tableName | ||
; | ||
|
||
coveringIndexStatement | ||
: createCoveringIndexStatement | ||
| refreshCoveringIndexStatement | ||
| showCoveringIndexStatement | ||
| describeCoveringIndexStatement | ||
| dropCoveringIndexStatement | ||
; | ||
|
||
createCoveringIndexStatement | ||
: CREATE INDEX indexName ON tableName | ||
LEFT_PAREN indexColumns=multipartIdentifierPropertyList RIGHT_PAREN | ||
(WITH LEFT_PAREN propertyList RIGHT_PAREN)? | ||
; | ||
|
||
refreshCoveringIndexStatement | ||
: REFRESH INDEX indexName ON tableName | ||
; | ||
|
||
showCoveringIndexStatement | ||
: SHOW (INDEX | INDEXES) ON tableName | ||
; | ||
|
||
describeCoveringIndexStatement | ||
: (DESC | DESCRIBE) INDEX indexName ON tableName | ||
; | ||
|
||
dropCoveringIndexStatement | ||
: DROP INDEX indexName ON tableName | ||
; | ||
|
||
indexColTypeList | ||
: indexColType (COMMA indexColType)* | ||
; | ||
|
||
indexColType | ||
: identifier skipType=(PARTITION | VALUE_SET | MIN_MAX) | ||
; | ||
|
||
indexName | ||
: identifier | ||
; | ||
|
||
tableName | ||
: multipartIdentifier | ||
; |
Oops, something went wrong.