You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rharding6373 opened this issue
May 2, 2024
· 3 comments
Labels
A-cdcChange Data CaptureC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.E-easyEasy issue to tackle, requires little or no CockroachDB experienceT-cdc
24.1 docs suggest that users should be able to use the azure-event-hub prefix on their URIs as well as kafka, but although azure provides connection strings in a camelcase format SharedAccessKeyName=<...>;SharedAccessKey=<...>, CRDB current expects URIs prefixed with azure-event-hub to use snake case (e.g.,shared_access_key_name) for these parameters.
CDC should update the syntactic sugar around the azure-event-hub URI to support the format that azure provides to reduce friction for users and be consistent with documentation.
I think you just need to encode shared_access_key to get it working. I just tried on my end and it was working.
demo@127.0.0.1:26257/demoapp/movr> CREATE CHANGEFEED FOR TABLE a INTO
-> "azure-event-hub://wenyitest.servicebus.windows.net:9093?shared_access_key_name=RootManageSharedAccessKey&shared_access_key=redacted";
job_id
----------------------
965368103159988225
(1 row)
NOTICE: changefeed will emit to topic a
Time: 342ms total (execution 342ms / network 0ms)
Leaving this issue open to address ease-of-use around the CamelCase vs snake_case. Since azure provides easy to copy connection strings in CamelCase, it would be ideal to support both syntaxes.
A-cdcChange Data CaptureC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.E-easyEasy issue to tackle, requires little or no CockroachDB experienceT-cdc
24.1 docs suggest that users should be able to use the
azure-event-hub
prefix on their URIs as well askafka
, but although azure provides connection strings in a camelcase formatSharedAccessKeyName=<...>;SharedAccessKey=<...>
, CRDB current expects URIs prefixed withazure-event-hub
to use snake case (e.g.,shared_access_key_name
) for these parameters.CDC should update the syntactic sugar around the
azure-event-hub
URI to support the format that azure provides to reduce friction for users and be consistent with documentation.Jira issue: CRDB-38378
The text was updated successfully, but these errors were encountered: