We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0429d89 commit 12ff127Copy full SHA for 12ff127
enginetest/queries/index_queries.go
@@ -4512,4 +4512,25 @@ var IndexQueries = []ScriptTest{
4512
},
4513
4514
4515
+ {
4516
+ Name: "aggregates using indexes with false filter",
4517
+ SetUpScript: []string{
4518
+ "create table pk_tbl (i int primary key);",
4519
+ "create table unq_tbl (i int unique key);",
4520
+ },
4521
+ Assertions: []ScriptTestAssertion{
4522
4523
+ Query: "select count(*) from pk_tbl where (i = 0 and i = 1);",
4524
+ Expected: []sql.Row{
4525
+ {0},
4526
4527
4528
4529
+ Query: "select count(*) from unq_tbl where (i = 0 and i = 1);",
4530
4531
4532
4533
4534
4535
4536
}
0 commit comments