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/LinqTranslationBaselineTests.TestFullTextScoreOrderByRankFunction.xml
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -66,52 +66,52 @@ ORDER BY RANK FullTextScore(root["StringField"], "test1", "test2", "test3")]]></
66
66
<Result>
67
67
<Input>
68
68
<Description><![CDATA[FullTextScore in WHERE clause]]></Description>
WHERE (FullTextScore(root["StringField"], "test1") != null)]]></SqlQuery>
75
+
WHERE (FullTextScore(root["StringField"], "test1") != 123)]]></SqlQuery>
76
76
<ErrorMessage><![CDATA[Status Code: BadRequest,{"errors":[{"severity":"Error","location":{"start":35,"end":78},"code":"SC2240","message":"The FullTextScore function is only allowed in the ORDER BY RANK clause."}]},0x800A0B00]]></ErrorMessage>
77
77
</Output>
78
78
</Result>
79
79
<Result>
80
80
<Input>
81
81
<Description><![CDATA[FullTextScore in WHERE clause 2]]></Description>
WHERE (FullTextScore(root["StringField"], "test1", "test2", "test3") != null)]]></SqlQuery>
88
+
WHERE (FullTextScore(root["StringField"], "test1", "test2", "test3") != 123)]]></SqlQuery>
89
89
<ErrorMessage><![CDATA[Status Code: BadRequest,{"errors":[{"severity":"Error","location":{"start":35,"end":96},"code":"SC2240","message":"The FullTextScore function is only allowed in the ORDER BY RANK clause."}]},0x800A0B00]]></ErrorMessage>
90
90
</Output>
91
91
</Result>
92
92
<Result>
93
93
<Input>
94
94
<Description><![CDATA[FullTextScore in WHERE clause]]></Description>
WHERE (FullTextScore(root["StringField"], "test1") != null)]]></SqlQuery>
101
+
WHERE (FullTextScore(root["StringField"], "test1") != 123)]]></SqlQuery>
102
102
<ErrorMessage><![CDATA[Status Code: BadRequest,{"errors":[{"severity":"Error","location":{"start":35,"end":78},"code":"SC2240","message":"The FullTextScore function is only allowed in the ORDER BY RANK clause."}]},0x800A0B00]]></ErrorMessage>
103
103
</Output>
104
104
</Result>
105
105
<Result>
106
106
<Input>
107
107
<Description><![CDATA[FullTextScore in WHERE clause 2]]></Description>
WHERE (FullTextScore(root["StringField"], "test1", "test2", "test3") != null)]]></SqlQuery>
114
+
WHERE (FullTextScore(root["StringField"], "test1", "test2", "test3") != 123)]]></SqlQuery>
115
115
<ErrorMessage><![CDATA[Status Code: BadRequest,{"errors":[{"severity":"Error","location":{"start":35,"end":96},"code":"SC2240","message":"The FullTextScore function is only allowed in the ORDER BY RANK clause."}]},0x800A0B00]]></ErrorMessage>
Copy file name to clipboardExpand all lines: Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/BaselineTest/TestBaseline/LinqTranslationBaselineTests.TestRRFOrderByRankFunction.xml
+54-4Lines changed: 54 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -47,27 +47,77 @@ ORDER BY RANK RRF(FullTextScore(root["StringField"], "test1"))]]></SqlQuery>
47
47
<Result>
48
48
<Input>
49
49
<Description><![CDATA[RRF in WHERE clause]]></Description>
WHERE (RRF(FullTextScore(root["StringField"], "test1")) != null)]]></SqlQuery>
56
+
WHERE (RRF(FullTextScore(root["StringField"], "test1")) != 123)]]></SqlQuery>
57
57
<ErrorMessage><![CDATA[Status Code: BadRequest,{"errors":[{"severity":"Error","location":{"start":39,"end":82},"code":"SC2240","message":"The FullTextScore function is only allowed in the ORDER BY RANK clause."},{"severity":"Error","location":{"start":35,"end":38},"code":"SC2005","message":"'RRF' is not a recognized built-in function name."}]},0x800A0B00]]></ErrorMessage>
58
58
</Output>
59
59
</Result>
60
60
<Result>
61
61
<Input>
62
62
<Description><![CDATA[RRF in WHERE clause 2]]></Description>
WHERE (RRF(FullTextScore(root["StringField"], "test1"), FullTextScore(root["StringField2"], "test1", "test2", "test3")) != null)]]></SqlQuery>
69
+
WHERE (RRF(FullTextScore(root["StringField"], "test1"), FullTextScore(root["StringField2"], "test1", "test2", "test3")) != 123)]]></SqlQuery>
70
70
<ErrorMessage><![CDATA[Status Code: BadRequest,{"errors":[{"severity":"Error","location":{"start":39,"end":82},"code":"SC2240","message":"The FullTextScore function is only allowed in the ORDER BY RANK clause."},{"severity":"Error","location":{"start":84,"end":146},"code":"SC2240","message":"The FullTextScore function is only allowed in the ORDER BY RANK clause."},{"severity":"Error","location":{"start":35,"end":38},"code":"SC2005","message":"'RRF' is not a recognized built-in function name."}]},0x800A0B00]]></ErrorMessage>
71
71
</Output>
72
72
</Result>
73
+
<Result>
74
+
<Input>
75
+
<Description><![CDATA[RRF with non scoring function]]></Description>
<ErrorMessage><![CDATA[Query expression is invalid, method call RRF is not allowed at this context. Allowed methods are FullTextScore.]]></ErrorMessage>
0 commit comments