Skip to content

Commit 494ce4f

Browse files
committed
[no-release-notes] add test for reverse keyless index read
1 parent 3281d09 commit 494ce4f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

enginetest/queries/script_queries.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,17 @@ type ScriptTestAssertion struct {
107107
// Unlike other engine tests, ScriptTests must be self-contained. No other tables are created outside the definition of
108108
// the tests.
109109
var ScriptTests = []ScriptTest{
110+
{
111+
Name: "keyless reverse index",
112+
SetUpScript: []string{
113+
"create table x (x int, key(x));",
114+
"insert into x values (0),(1)",
115+
},
116+
Query: "select * from x order by x desc limit 1",
117+
Expected: []sql.Row{
118+
{1},
119+
},
120+
},
110121
{
111122
Name: "filter pushdown through join uppercase name",
112123
SetUpScript: []string{

0 commit comments

Comments
 (0)