Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eventhubs: Refactor Destination Table Semantics #1200

Merged
merged 3 commits into from
Feb 4, 2024

Conversation

Amogh-Bharadwaj
Copy link
Contributor

The destination table name in table mapping of Create CDC Mirror now expected to look like:

<eventhub_name>.<eventhub_namespace>.<unique_identifier>.<partition_key>

This is to allow multiple source tables to be mapped to same eventhub partition.
unique identifier can be the source table name or anything else. It's purely to distinguish destination table names

// It's just so that we have distinct destination table names
// in create mirror's table mapping.
// We can ignore it.
eventhubPart := strings.Trim(parts[0], `"`)
Copy link
Contributor

@serprex serprex Feb 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These parts would ideally be sent as []string in protocol, avoid this incorrect parsing

Otherwise we need to correctly consume double quoted identifiers so that identifiers with . don't break things

@iskakaushik
Copy link
Contributor

landing for customer urgency

@iskakaushik iskakaushik merged commit f9fa222 into customer-mirage Feb 4, 2024
3 of 4 checks passed
@iskakaushik iskakaushik deleted the eh/refactor-dst-name branch February 4, 2024 19:01
Amogh-Bharadwaj added a commit that referenced this pull request Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants