Skip to content

Commit

Permalink
adding hotfix for sanitize queries
Browse files Browse the repository at this point in the history
Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
  • Loading branch information
ps48 committed Mar 21, 2024
1 parent 76d206c commit d4e01b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const CreateAccelerationButton = ({

const requestPayload: DirectQueryRequest = {
lang: 'sql',
query: accelerationQueryBuilder(accelerationFormData),
query: accelerationQueryBuilder(accelerationFormData).replaceAll(/\s+/g, ' '),
datasource: accelerationFormData.dataSource,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const buildIndexOptions = (accelerationformData: CreateAccelerationForm)

// Add index settings option
indexOptions.push(
`index_settings = '{"number_of_shards":${primaryShardsCount},"number_of_replicas":${replicaShardsCount}}'`
`index_settings = '{\\"number_of_shards\\":${primaryShardsCount},\\"number_of_replicas\\":${replicaShardsCount}}'`
);

// Add auto refresh option
Expand Down

0 comments on commit d4e01b8

Please sign in to comment.