-
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.
Handle Describe,Refresh and Show Queries Properly
Signed-off-by: Vamsi Manohar <[email protected]>
- Loading branch information
Showing
13 changed files
with
518 additions
and
162 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
14 changes: 14 additions & 0 deletions
14
spark/src/main/java/org/opensearch/sql/spark/dispatcher/model/IndexQueryActionType.java
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,14 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package org.opensearch.sql.spark.dispatcher.model; | ||
|
||
public enum IndexQueryActionType { | ||
CREATE, | ||
REFRESH, | ||
DESCRIBE, | ||
SHOW, | ||
DROP | ||
} |
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
6 changes: 3 additions & 3 deletions
6
spark/src/main/java/org/opensearch/sql/spark/flint/FlintIndexMetadataReader.java
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
package org.opensearch.sql.spark.flint; | ||
|
||
import org.opensearch.sql.spark.dispatcher.model.IndexDetails; | ||
import org.opensearch.sql.spark.dispatcher.model.IndexQueryDetails; | ||
|
||
/** Interface for FlintIndexMetadataReader */ | ||
public interface FlintIndexMetadataReader { | ||
|
||
/** | ||
* Given Index details, get the streaming job Id. | ||
* | ||
* @param indexDetails indexDetails. | ||
* @param indexQueryDetails indexDetails. | ||
* @return FlintIndexMetadata. | ||
*/ | ||
FlintIndexMetadata getFlintIndexMetadata(IndexDetails indexDetails); | ||
FlintIndexMetadata getFlintIndexMetadata(IndexQueryDetails indexQueryDetails); | ||
} |
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
Oops, something went wrong.