CDC DMS task - removing Op column

0

i have a DMS Replication task that is full+ongoing replication. the source table dont have update or delete operation , only insert for new records. the task is adding Op field with the I (value for insert).

i dont need this field. the initial load csv does not have this field , but the files create after each insert contain it. that cause glue in the next step of the pipeline to create the wront schema and after that some of the values are not in the correct field when quering the data

i have tried using transformation and drop this column , but that didn't work

        {
            "rule-type": "transformation",
            "rule-id": "185351232",
            "rule-name": "185351232",
            "rule-target": "column",
            "object-locator": {
                "schema-name": "%",
                "table-name": "%",
                "column-name": "Op"
            },
            "rule-action": "remove-column",
            "value": null,
            "old-value": null
        },

any idea what i can do to remove it ?

  • using the IncludeOpForFullLoad is not a valid option since the initial load of those table have already done. i am thinking about using lambda to remove this column but i am not sure how good is this idea

avishni
質問済み 1ヶ月前82ビュー
3回答
0
  • That rule removes only columns present inherent to source tables.

  • unfortunately, i didnt find any reference in the documentation to removing the first column in the method you mention , only by specifying the column name as i wrote in the question - which does not work

0

Removing opcolumn in cdc is not possible But you can add it in fullload by using eca IncludeOpForFullLoad

AWS
回答済み 1ヶ月前
0
profile picture
エキスパート
回答済み 1ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ