You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/BaselineTest/TestBaseline/QueryAdvisorBaselineTest.QueryAdviceParse.xml
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
WHERE CONTAINS(r.name, "Abc") ]]></Query>
8
8
</Input>
9
9
<Output>
10
-
<QueryAdvice><![CDATA[QA1002: Instead of CONTAINS, consider using STARTSWTIH or computed properties, which may improve performance. For more information, please visit https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/query/queryadvisor/QA1002
10
+
<QueryAdvice><![CDATA[QA1002: If you are matching on a string prefix, consider using STARTSWITH. For more information, please visit https://aka.ms/CosmosDB/QueryAdvisor/QA1002
11
11
]]></QueryAdvice>
12
12
</Output>
13
13
</Result>
@@ -19,8 +19,8 @@
19
19
WHERE GetCurrentTimestamp() > 10 ]]></Query>
20
20
</Input>
21
21
<Output>
22
-
<QueryAdvice><![CDATA[QA1009: Instead of using GetCurrentTimestamp, consider using GetCurrentTimestampStatic, which may improve performance. For more information, please visit https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/query/queryadvisor/QA1009
23
-
QA1008: Instead of using GetCurrentTicks, consider using GetCurrentTicksStatic, which may improve performance. For more information, please visit https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/query/queryadvisor/QA1008
22
+
<QueryAdvice><![CDATA[QA1009: Consider using GetCurrentTimestampStatic instead of GetCurrentTimestamp in the WHERE clause . For more information, please visit https://aka.ms/CosmosDB/QueryAdvisor/QA1009
23
+
QA1008: Consider using GetCurrentTicksStatic instead of GetCurrentTicks in the WHERE clause. For more information, please visit https://aka.ms/CosmosDB/QueryAdvisor/QA1008
Copy file name to clipboardExpand all lines: Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/CosmosItemTests.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -275,7 +275,7 @@ public async Task NegativeCreateItemTest(bool binaryEncodingEnabledInClient)
275
275
{
276
276
Assert.AreEqual(999999,ce.SubStatusCode);
277
277
stringexception=ce.ToString();
278
-
Assert.IsTrue(exception.StartsWith("Microsoft.Azure.Cosmos.CosmosException : Response status code does not indicate success: Forbidden (403); Substatus: 999999; "));
278
+
Assert.IsTrue(exception.Contains("Response status code does not indicate success: Forbidden (403); Substatus: 999999; "));
0 commit comments