Files
tidb/executor/testdata/executor_suite_in.json

56 lines
2.6 KiB
JSON

[
{
"name": "TestSetOperation",
"cases": [
"select * from t3 union select * from t1",
"select * from t2 union all select * from t1",
"select * from t1 except select * from t3",
"select * from t1 intersect select * from t2",
"select * from t1 union all select * from t2 union all select * from t3",
"select * from t1 union all select * from t2 except select * from t3",
"select * from t1 intersect select * from t2 intersect select * from t1",
"select * from t1 union all select * from t2 intersect select * from t3",
"select * from t1 except select * from t2 intersect select * from t3",
"select * from t1 intersect (select * from t2 except (select * from t3))",
"select * from t1 union all (select * from t2 except select * from t3)",
"select * from t1 union (select * from t2 union all select * from t3)",
"(select * from t1 intersect select * from t1) except (select * from t2 union select * from t3)"
]
},
{
"name": "TestSetOperationOnDiffColType",
"cases": [
"select * from t3 union select * from t1",
"select * from t2 union all select * from t1",
"select * from t1 except select * from t3",
"select * from t1 intersect select * from t2",
"select * from t1 union all select * from t2 union all select * from t3",
"select * from t1 union all select * from t2 except select * from t3",
"select * from t1 intersect select * from t2 intersect select * from t1",
"select * from t1 union all select * from t2 intersect select * from t3",
"select * from t1 except select * from t2 intersect select * from t3"
]
},
{
"name": "TestNaturalJoin",
"cases": [
"select * from t1 natural join t2",
"select * from t1 natural left join t2 order by a",
"select * from t1 natural right join t2 order by a",
"SELECT * FROM t1 NATURAL LEFT JOIN t2 WHERE not(t1.a <=> t2.a)"
]
},
{
"name": "TestIndexScanWithYearCol",
"cases": [
"select t1.c1, t2.c1 from t as t1 inner join t as t2 on t1.c1 = t2.c1 where t1.c1 != NULL",
"select * from t as t1 inner join t as t2 on t1.c1 = t2.c1 where t1.c1 != NULL",
"select count(*) from t as t1 inner join t as t2 on t1.c1 = t2.c1 where t1.c1 != NULL",
"select t1.c1, t2.c1 from t as t1 left join t as t2 on t1.c1 = t2.c1 where t1.c1 != NULL",
"select * from t as t1 left join t as t2 on t1.c1 = t2.c1 where t1.c1 != NULL",
"select count(*) from t as t1 left join t as t2 on t1.c1 = t2.c1 where t1.c1 != NULL",
"select * from t as t1 left join t as t2 on t1.c1 = t2.c1 where t1.c1 is not NULL"
]
}
]