Skip to content

Commit b8f3ee8

Browse files
committed
fix: review fixes
1 parent ca8ac88 commit b8f3ee8

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/containers/Tenant/utils/newSQLQueryActions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {
22
addTableIndex,
3-
addVectorIndexTemplate,
3+
addVectorIndex,
44
alterAsyncReplicationTemplate,
55
alterStreamingQuerySettingsTemplate,
66
alterStreamingQueryText,
@@ -73,7 +73,7 @@ export const bindActions = (changeUserInput: (input: string) => void) => {
7373
revokePrivilege: inputQuery(revokePrivilegeTemplate),
7474
dropUser: inputQuery(dropUserTemplate),
7575
dropGroup: inputQuery(dropGroupTemplate),
76-
addVectorIndex: inputQuery(addVectorIndexTemplate),
76+
addVectorIndex: inputQuery(addVectorIndex),
7777
addTableIndex: inputQuery(addTableIndex),
7878
dropTableIndex: inputQuery(dropTableIndex),
7979
showCreateTable: inputQuery(showCreateTableTemplate),

src/containers/Tenant/utils/schemaActions.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import i18n from '../i18n';
2222
import type {TemplateFn} from './schemaQueryTemplates';
2323
import {
2424
addTableIndex,
25-
addVectorIndexTemplate,
25+
addVectorIndex,
2626
alterAsyncReplicationTemplate,
2727
alterStreamingQuerySettingsTemplate,
2828
alterStreamingQueryText,
@@ -153,7 +153,7 @@ const bindActions = (
153153
alterStreamingQueryText: inputQuery(alterStreamingQueryText),
154154
dropStreamingQuery: inputQuery(dropStreamingQueryTemplate),
155155
dropIndex: inputQuery(dropTableIndex),
156-
addVectorIndex: inputQuery(addVectorIndexTemplate),
156+
addVectorIndex: inputQuery(addVectorIndex),
157157
addTableIndex: inputQuery(addTableIndex),
158158
createCdcStream: inputQuery(createCdcStreamTemplate),
159159
copyPath: () => {

src/containers/Tenant/utils/schemaQueryTemplates.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,14 +385,14 @@ export const addTableIndex = (params?: SchemaQueryParams) => {
385385
return `ALTER TABLE ${path} ADD INDEX \${2:index_name} GLOBAL ON (\${3:<column_name>});`;
386386
};
387387

388-
export const addVectorIndexTemplate = (params?: SchemaQueryParams) => {
388+
export const addVectorIndex = (params?: SchemaQueryParams) => {
389389
const path = params?.relativePath
390390
? `\`${normalizeParameter(params.relativePath)}\``
391-
: '${2:<my_table>}';
391+
: '${1:<my_table>}';
392392

393393
return `-- docs: https://ydb.tech/docs/en/dev/vector-indexes?version=main#types
394394
ALTER TABLE ${path}
395-
ADD INDEX \${1:my_vector_index}
395+
ADD INDEX \${2:my_vector_index}
396396
GLOBAL USING vector_kmeans_tree
397397
ON (\${3:embedding})
398398
WITH (

0 commit comments

Comments
 (0)