Added quote escaping for partition key extraction (#2403)

This commit is contained in:
sunghyunkang1111
2026-02-27 14:58:14 -06:00
committed by GitHub
parent 2e5c355479
commit 204444b878
5 changed files with 147 additions and 5 deletions

View File

@@ -249,4 +249,27 @@ export const documentTestCases: DocumentTestCase[] = [
},
],
},
{
name: "Single Double-Quoted Partition Key",
databaseId: "e2etests-sql-readonly",
containerId: "doubleQuotedPartitionKey",
documents: [
{
documentId: "doubleQuotedPartitionKey",
partitionKeys: [{ key: "/partition-key", value: "doubleQuotedValue" }],
},
{
documentId: "doubleQuotedPartitionKey_empty_string",
partitionKeys: [{ key: "/partition-key", value: "" }],
},
{
documentId: "doubleQuotedPartitionKey_null",
partitionKeys: [{ key: "/partition-key", value: null }],
},
{
documentId: "doubleQuotedPartitionKey_missing",
partitionKeys: [],
},
],
},
];