forked from opensearch-project/sql
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix IndexNotFound Exception after datasource creation
Signed-off-by: Vamsi Manohar <reddyvam@amazon.com>
- Loading branch information
Showing
8 changed files
with
156 additions
and
2 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
37 changes: 37 additions & 0 deletions
37
datasources/src/main/resources/query_execution_result_mapping.yml
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,37 @@ | ||
--- | ||
## | ||
# Copyright OpenSearch Contributors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
## | ||
|
||
# Schema file for the query_execution_request index | ||
# Also "dynamic" is set to "false" so that other fields can be added., | ||
dynamic: false | ||
properties: | ||
result: | ||
type: object | ||
enabled: false | ||
schema: | ||
type: object | ||
enabled: false | ||
jobRunId: | ||
type: keyword | ||
applicationId: | ||
type: keyword | ||
dataSourceName: | ||
type: keyword | ||
status: | ||
type: keyword | ||
queryId: | ||
type: keyword | ||
queryText: | ||
type: text | ||
sessionId: | ||
type: keyword | ||
updateTime: | ||
type: date | ||
format: strict_date_time||epoch_millis | ||
error: | ||
type: text | ||
queryRunTime: | ||
type: long |
11 changes: 11 additions & 0 deletions
11
datasources/src/main/resources/query_execution_result_settings.yml
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,11 @@ | ||
--- | ||
## | ||
# Copyright OpenSearch Contributors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
## | ||
|
||
# Settings file for the query_execution_result index | ||
index: | ||
number_of_shards: "1" | ||
auto_expand_replicas: "0-2" | ||
number_of_replicas: "0" |
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