-
Notifications
You must be signed in to change notification settings - Fork 845
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
Add API for creating hierarchical PartitionKey
s
#23577
Conversation
Thank you for your contribution @Pietrrrek! We will review the pull request and get back to you soon. |
@microsoft-github-policy-service agree company="Boyum IT" |
@simorenoh and/or @analogrelay - can you take a look at this when you get a chance? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't done a full review yet, but I do have an API comment that I think is worth looking at first. Would be interested what other folks who have a bit more experience with the Go SDK have to say though.
The coverage tests are failing, but the error message doesn't seem quite right
I'm not sure how to proceed from here, anyone that can help? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Append
methods are looking great, now we need to get the tests up and running :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closing in on it! A few minor adjustments and test fixes, but I think you're close!
Co-authored-by: Ashley Stanton-Nurse <[email protected]>
Co-authored-by: Ashley Stanton-Nurse <[email protected]>
Co-authored-by: Ashley Stanton-Nurse <[email protected]>
Co-authored-by: Ashley Stanton-Nurse <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like just a query syntax error left 🤞🏻 . If you're having some trouble running the tests (I believe they require the emulator which can be difficult to get running on some platforms), let me know. I'd be happy to help, or jump in and see if I can fix these tests up so we can land this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went ahead and made the change to remove the dangling WHERE
clauses. This seemed to fix the tests on my machine. Assuming the tests do indeed pass, this is good to go!
This PR adds a builder for creating
PartitionKey
structs with multiple keys in order to support hierarchical partitioning keys.Related issue: #21063