Hello team,
We have a scenario where we want to do Debezium snapshots with the SQL Server Row level security(RLS) enabled. Currently, the snapshot queries are for all the rows in the table. Now we want to enable snapshot with RLS.
With RLS, we want to run a sql statement(RLS context query) before the snapshot query starts on that connection so that SQL server predicate function filters data based on it. I do not see an option in debezium configuration to fire queries(RLS context query) before each snapshot query(snapshot).
Note: For CDC, it is not a concern though, it is only on snapshot.
Thanks,
Senthil