Scope And Collection in N1QL sink handler
Description
Environment
Gerrit Reviews
Release Notes Description
Activity

David Nault September 1, 2022 at 8:15 PM
Many thanks to for this improvement.

David Nault August 29, 2022 at 4:12 PM
Oops, didn't mean to resolve this yet.

Shahrzad Haji amin Shirazi August 23, 2022 at 7:35 PMEdited
Hi ,Thanks for the comment. The DMLs in the N1QL sink handler only use the bucket name as the keyspace. We wanted to see the data inserted into different scopes and collections. I added this improvement as I wanted to submit a new batch for it in Gerrit. The batch can be found at the following link. https://review.couchbase.org/c/kafka-connect-couchbase/+/179087
In the code, we are creating N1QL DMLs and the only change needed was adding the scope and collection to the statements. And when we don't have any scopes and collections "_default" as collection and as the scope. (I can change it to "" as well if needed) Is there a problem in changing the DMLs in this way?

Matt Ingenthron August 23, 2022 at 6:26 PM
Thanks , at the moment, we probably need to support 6.x and 7.x. 7.x supports both formats. Or maybe I don't fully understand the change you're looking for in the connector? What was it you were trying to do that you could not?
Details
Details
Assignee

Reporter

Story Points
Fix versions
Priority
Instabug
PagerDuty
PagerDuty Incident
PagerDuty

Sentry
Linked Issues
Sentry
Zendesk Support
Linked Tickets
Zendesk Support

The DMLs created in the N1QL sink handler are changed to use the collections and scopes. (It was just using the bucketName as the keySpace.)