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
asked a month ago67 views
3 Answers
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
answered a month ago
0
profile picture
EXPERT
answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions