diff --git a/common/constants/index.ts b/common/constants/index.ts index 6a796871..4fc24444 100644 --- a/common/constants/index.ts +++ b/common/constants/index.ts @@ -8,7 +8,31 @@ export const PLUGIN_NAME = 'Query Workbench'; export const OPENSEARCH_ACC_DOCUMENTATION_URL = 'https://opensearch.org/docs/latest'; export const ACC_INDEX_TYPE_DOCUMENTATION_URL = 'https://opensearch.org/docs/latest'; +export const SKIPPING_INDEX = `skipping_index` export const ON_LOAD_QUERY = `SHOW tables LIKE '%';`; +export const SKIPPING_INDEX_QUERY = `CREATE SKIPPING INDEX ON myS3.logs_db.http_logs +(status VALUE_SET) +WITH ( + auto_refresh = true + )` +export const COVERING_INDEX_QUERY =`CREATE INDEX covering_idx ON myS3.logs_db.http_logs + (status) + WITH ( + auto_refresh = true + )` +export const CREATE_DATABASE_QUERY =`CREATE DATABASE myS3.logs_db` +export const CREATE_TABLE_QUERY =`CREATE EXTERNAL TABLE logs ( + key BIGINT, + status INTEGER, + size FLOAT, + agent STRING, + timestamp DATE +) +USING JSON +OPTIONS ( + path 's3://test/path', + compression 'gzip' +);` export const ACCELERATION_INDEX_TYPES = [ { label: 'Skipping Index', value: 'skipping' }, diff --git a/public/components/Main/__snapshots__/main.test.tsx.snap b/public/components/Main/__snapshots__/main.test.tsx.snap index 8b0d7301..ff0dd051 100644 --- a/public/components/Main/__snapshots__/main.test.tsx.snap +++ b/public/components/Main/__snapshots__/main.test.tsx.snap @@ -203,16 +203,59 @@ exports[` spec click clear button 1`] = `
- You can quickly navigate this list using arrow keys. -
-- You can quickly navigate this list using arrow keys. -
-- You can quickly navigate this list using arrow keys. -
-+ You can quickly navigate this list using arrow keys. +
+