Skip to content

Commit

Permalink
fix: fix cdc stream query template (#1498)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemmufazalov authored Oct 18, 2024
1 parent e85f70e commit 8405466
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/containers/Tenant/utils/schemaQueryTemplates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ export const dropTableIndex = (params?: SchemaQueryParams) => {
return `ALTER TABLE \`${path || '$path'}\` DROP INDEX \`${indexName || '$indexName'}\`;`;
};

export const createCdcStreamTemplate = () => {
export const createCdcStreamTemplate = (params?: SchemaQueryParams) => {
return `-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create_changefeed
ADD CHANGEFEED $name WITH (
ALTER TABLE \`${params?.relativePath || '$path'}\` ADD CHANGEFEED $name WITH (
MODE = $mode, -- KEYS_ONLY, UPDATES, NEW_IMAGE, OLD_IMAGE, or NEW_AND_OLD_IMAGES
FORMAT = $format, -- JSON or DEBEZIUM_JSON
VIRTUAL_TIMESTAMPS = $virtualTimestamps, -- true or false
Expand Down

0 comments on commit 8405466

Please sign in to comment.