File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,8 @@ function conditionKeyNodes(node: { [x: string]: any }): any[] {
20
20
21
21
function toPartitionKey ( node : { [ x : string ] : any } ) : string | null {
22
22
if ( node . type === "scalar_member_expression" ) {
23
- return `${ toPartitionKey ( node . object ) || "" } /${ node . property . name || node . property . value } ` ;
23
+ return `${ toPartitionKey ( node . object ) || "" } /${ node . property . name ||
24
+ node . property . value } `;
24
25
}
25
26
return null ;
26
27
}
Original file line number Diff line number Diff line change @@ -45,3 +45,9 @@ export const notContainsMultipleKeys = testPartitionKeys(
45
45
) ;
46
46
47
47
export const empty = testPartitionKeys ( "SELECT * FROM c" , [ ] ) ;
48
+
49
+ export const computedProperty = testPartitionKeys (
50
+ 'SELECT * FROM c WHERE c["partition"] = @pkValue' ,
51
+ [ "/partition" ] ,
52
+ true
53
+ ) ;
You can’t perform that action at this time.
0 commit comments