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

[Internal] ChangeFeed: Adds Support to Pass Custom Headers for ChangeFeed Queries #2163

Closed
wants to merge 1 commit into from

Conversation

vivekr20
Copy link
Contributor

  • This is needed for the Cassandra API to function correctly as we rely on passing down the BinaryPassThrough header for HybridRow Full-FidelitySupport, as well as the SchemaOwnerId, SchemaHash, & SchemaId Headers for data correctness.

  • [] Bug fix (non-breaking change which fixes an issue)

…eed Queries

- This is needed for the Cassandra API to function correctly as we rely on passing down the BinaryPassThrough header for HybridRow Full-FidelitySupport, as well as the SchemaOwnerId, SchemaHash, & SchemaId Headers for data correctness.
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Please follow the required format: "[Internal] Category: (Adds|Fixes|Refactors) Description"

Examples:
Diagnostics: Adds GetElapsedClientLatency to CosmosDiagnostics
PartitionKey: Fixes null reference when using default(PartitionKey)
[v4] Client Encryption: Refactors code to external project
[Internal] Query: Adds code generator for CosmosNumbers for easy additions in the future.

@vivekr20 vivekr20 changed the title [Internal] ChangeFeed: Add Support to Pass Custom Headers for ChangeFeed Queries [Internal] Fixes ChangeFeed: Add Support to Pass Custom Headers for ChangeFeed Queries Jan 29, 2021
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Please follow the required format: "[Internal] Category: (Adds|Fixes|Refactors) Description"

Examples:
Diagnostics: Adds GetElapsedClientLatency to CosmosDiagnostics
PartitionKey: Fixes null reference when using default(PartitionKey)
[v4] Client Encryption: Refactors code to external project
[Internal] Query: Adds code generator for CosmosNumbers for easy additions in the future.

@vivekr20 vivekr20 changed the title [Internal] Fixes ChangeFeed: Add Support to Pass Custom Headers for ChangeFeed Queries [Internal] ChangeFeed: Adds Support to Pass Custom Headers for ChangeFeed Queries Jan 29, 2021
@github-actions github-actions bot dismissed stale reviews from themself January 29, 2021 08:47

All good!

Copy link
Contributor

@bchong95 bchong95 left a comment

Choose a reason for hiding this comment

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

Wiring ChangeFeedRequestOptions (the v3 type) through the pagination library is not really an option. This creates tight coupling between the v3 SDK and this general purpose pagination library. The goal is that this code can be forked into a different SDK and by a strong dependency on the type we are stopping any chances of that in the future.

@vivekr20
Copy link
Contributor Author

Wiring ChangeFeedRequestOptions (the v3 type) through the pagination library is not really an option. This creates tight coupling between the v3 SDK and this general purpose pagination library. The goal is that this code can be forked into a different SDK and by a strong dependency on the type we are stopping any chances of that in the future.

@bchong95 My intention for this change is only as a stop gap until #2144 can get merged in, at which point, your concerns would be addressed.

The reason to get this change in now before waiting for the above PR is so that we can add the missing capabilities needed to support ChangeFeed with FeedRanges for Cassandra, which in turn is a dependency for Materialized views.

@vivekr20 vivekr20 closed this Feb 3, 2021
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.

2 participants