cockroach icon indicating copy to clipboard operation
cockroach copied to clipboard

CDC: Support Filters for Changefeeds

Open amruss opened this issue 6 years ago • 9 comments

A way to syntactically specify a filter on what is emitted in a changefeed, ensuring we can support filtering by partition, and only the partitioned data is emitted in a changefeed.

UX tbd. Alternatively, we could allow a more broad set of filters.

Changefeed should fail when partitions are changed.

gz#7834

Jira issue: CRDB-2889

amruss avatar Nov 20 '20 13:11 amruss

Hi @amruss, I've guessed the C-ategory of your issue and suitably labeled it. Please re-label if inaccurate.

:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan.

blathers-crl avatar Nov 20 '20 13:11 blathers-crl

Did get a request from a CEA customer to allow filtering based in part on the SQL user that was responsible for the change. Might also be nice to have the SQL application name available as a predicate, too.

bobvawter avatar Nov 23 '20 19:11 bobvawter

@amruss - very interested in this

ghost avatar Apr 12 '21 11:04 ghost

Hi @bryanhuntesl this ended up just under the cutline for 21.2, so we probably won't have something comprehensive here for the next release. That being said we're going to do scoping/validation here over the next few months. What does the use case look like for you?

amruss avatar Apr 22 '21 11:04 amruss

Hi - curious about a status for this? As a customer with regulated data (PCI, PII), it's super beneficial to have columns filtered right at the start when using CDC to populate a downstream pipeline.

chudel avatar May 11 '22 16:05 chudel

PCI/PII didn't even occur to me when I brought this up, but yes that's an obvious case where it would be essential.

binarytemple avatar May 11 '22 16:05 binarytemple

This is now available in preview. https://www.cockroachlabs.com/docs/dev/cdc-transformations.html

HonoreDB avatar Dec 07 '22 17:12 HonoreDB

Haha no way! Thanks for implementing this!

On Wed, 7 Dec 2022, 17:47 Aaron Zinger, @.***> wrote:

Closed #56949 https://github.com/cockroachdb/cockroach/issues/56949 as completed.

— Reply to this email directly, view it on GitHub https://github.com/cockroachdb/cockroach/issues/56949#event-7980417074, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADGJZQQEWVX5VXM334ZX2TWMDESHANCNFSM4T4YXSIQ . You are receiving this because you commented.Message ID: @.***>

binarytemple avatar Dec 07 '22 21:12 binarytemple

Planned for removing the preview label in 23.1 coming out in a few months!

amruss avatar Mar 03 '23 16:03 amruss