Ask Your Question
0

Documents not deleting from MongoDB Collection

asked 2020-03-02 19:05:20 -0500

Robot gravatar image

updated 2020-03-02 20:49:40 -0500

I am setting the SDC.OPERATION.TYPE = '2', but the documents in MONGO DB collection are not removing. What could be the reason? Please help.

${record:value('/type')=='INSERT'?1:(record:value('/type')=='UPDATE'?7:(record:value('/type')=='DELETE'?2:0))}
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-03-02 20:23:52 -0500

metadaddy gravatar image

Your problem is case - the attribute should be sdc.operation.type, not SDC.OPERATION.TYPE.

edit flag offensive delete link more

Comments

I defined it is as sdc.operation.type only in the streamsets pipeline. It is doing updates and inserts properly but not Delete operation

Robot gravatar imageRobot ( 2020-03-02 20:37:14 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-03-02 19:05:20 -0500

Seen: 15 times

Last updated: Mar 02