Skip to content

Commit e45961d

Browse files
authored
[no-release-notes] add test for reverse keyless index read (#2737)
1 parent 4af32d1 commit e45961d

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
@@ -114,6 +114,17 @@ type ScriptTestAssertion struct {
114114
// Unlike other engine tests, ScriptTests must be self-contained. No other tables are created outside the definition of
115115
// the tests.
116116
var ScriptTests = []ScriptTest{
117+
{
118+
Name: "keyless reverse index",
119+
SetUpScript: []string{
120+
"create table x (x int, key(x));",
121+
"insert into x values (0),(1)",
122+
},
123+
Query: "select * from x order by x desc limit 1",
124+
Expected: []sql.Row{
125+
{1},
126+
},
127+
},
117128
{
118129
Name: "filter pushdown through join uppercase name",
119130
SetUpScript: []string{

0 commit comments

Comments
 (0)