Handle partition key path with whitespace (#2423)

* Handle partition key path with white space

* add whitespace test case for pkey

* remove trailing whitespace

---------

Co-authored-by: Asier Isayas <aisayas@microsoft.com>
This commit is contained in:
asier-isayas
2026-03-16 07:21:41 -07:00
committed by GitHub
parent 7a93df6a4b
commit 454a02bc53
3 changed files with 47 additions and 1 deletions

View File

@@ -272,4 +272,27 @@ export const documentTestCases: DocumentTestCase[] = [
},
],
},
{
name: "Single Partition Key With Whitespace",
databaseId: "e2etests-sql-readonly",
containerId: "whitespacePartitionKey",
documents: [
{
documentId: "whitespacePartitionKey",
partitionKeys: [{ key: "/ partitionKey", value: "whitespaceValue" }],
},
{
documentId: "whitespacePartitionKey_empty_string",
partitionKeys: [{ key: "/ partitionKey", value: "" }],
},
{
documentId: "whitespacePartitionKey_null",
partitionKeys: [{ key: "/ partitionKey", value: null }],
},
{
documentId: "whitespacePartitionKey_missing",
partitionKeys: [],
},
],
},
];