-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Updated APIs with docs. Fixed few issues #11442
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
Changes from all commits
14b6bb7
67fb20f
221e786
62cfc4c
4cdc651
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -259,11 +259,14 @@ public void serialize(PartitionKeyInternal partitionKey, JsonGenerator writer, S | |
| return; | ||
| } | ||
|
|
||
| writer.writeStartArray(); | ||
| for (IPartitionKeyComponent componentValue : partitionKey.getComponents()) { | ||
| componentValue.jsonEncode(writer); | ||
| // PartitionKey.None has null components - which returns a null list | ||
| if (partitionKey.getComponents() != null) { | ||
| writer.writeStartArray(); | ||
| for (IPartitionKeyComponent componentValue : partitionKey.getComponents()) { | ||
| componentValue.jsonEncode(writer); | ||
| } | ||
| writer.writeEndArray(); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please add a unit test for the change. See
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure, will do.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added unit test. |
||
| } | ||
| writer.writeEndArray(); | ||
| } catch (IOException e) { | ||
| throw new IllegalStateException(e); | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.