|
670 | 670 | "explain format = 'brief' select /*+ inl_hash_join(s) */ * from t join s on t.a=s.a and t.a = s.b" |
671 | 671 | ] |
672 | 672 | }, |
| 673 | + { |
| 674 | + "name": "TestPushDownProjectionForTiKV", |
| 675 | + "cases": [ |
| 676 | + "desc format = 'brief' select i * 2 from t", |
| 677 | + "desc format = 'brief' select DATE_FORMAT(t, '%Y-%m-%d %H') as date from t", |
| 678 | + "desc format = 'brief' select md5(s) from t", |
| 679 | + "desc format = 'brief' select c from t where a+1=3", |
| 680 | + "desc format = 'brief' select /*+ hash_agg()*/ count(b) from (select id + 1 as b from t)A", |
| 681 | + "desc format = 'brief' select /*+ hash_agg()*/ count(*) from (select id + 1 as b from t)A", |
| 682 | + "desc format = 'brief' select /*+ hash_agg()*/ sum(b) from (select id + 1 as b from t)A", |
| 683 | + "desc format = 'brief' select /*+ stream_agg()*/ count(b) from (select id + 1 as b from t)A", |
| 684 | + "desc format = 'brief' select /*+ stream_agg()*/ count(*) from (select id + 1 as b from t)A", |
| 685 | + "desc format = 'brief' select /*+ stream_agg()*/ sum(b) from (select id + 1 as b from t)A", |
| 686 | + "desc format = 'brief' select * from (select id-2 as b from t) B join (select id-2 as b from t) A on A.b=B.b", |
| 687 | + "desc format = 'brief' select * from t join (select id-2 as b from t) A on A.b=t.id", |
| 688 | + "desc format = 'brief' select * from t left join (select id-2 as b from t) A on A.b=t.id", |
| 689 | + "desc format = 'brief' select * from t right join (select id-2 as b from t) A on A.b=t.id", |
| 690 | + "desc format = 'brief' select A.b, B.b from (select id-2 as b from t) B join (select id-2 as b from t) A on A.b=B.b", |
| 691 | + "desc format = 'brief' select A.id from t as A where exists (select 1 from t where t.id=A.id)", |
| 692 | + "desc format = 'brief' select A.id from t as A where not exists (select 1 from t where t.id=A.id)", |
| 693 | + "desc format = 'brief' SELECT FROM_UNIXTIME(name,'%Y-%m-%d') FROM t;" |
| 694 | + ] |
| 695 | + }, |
| 696 | + { |
| 697 | + "name": "TestPushDownProjectionForTiFlashCoprocessor", |
| 698 | + "cases": [ |
| 699 | + "desc format = 'brief' select i * 2 from t", |
| 700 | + "desc format = 'brief' select DATE_FORMAT(t, '%Y-%m-%d %H') as date from t", |
| 701 | + "desc format = 'brief' select md5(s) from t", |
| 702 | + "desc format = 'brief' select c from t where a+1=3", |
| 703 | + "desc format = 'brief' select /*+ hash_agg()*/ count(b) from (select id + 1 as b from t)A", |
| 704 | + "desc format = 'brief' select /*+ hash_agg()*/ count(*) from (select id + 1 as b from t)A", |
| 705 | + "desc format = 'brief' select /*+ hash_agg()*/ sum(b) from (select id + 1 as b from t)A", |
| 706 | + "desc format = 'brief' select /*+ stream_agg()*/ count(b) from (select id + 1 as b from t)A", |
| 707 | + "desc format = 'brief' select /*+ stream_agg()*/ count(*) from (select id + 1 as b from t)A", |
| 708 | + "desc format = 'brief' select /*+ stream_agg()*/ sum(b) from (select id + 1 as b from t)A", |
| 709 | + "desc format = 'brief' select * from (select id-2 as b from t) B join (select id-2 as b from t) A on A.b=B.b", |
| 710 | + "desc format = 'brief' select * from t join (select id-2 as b from t) A on A.b=t.id", |
| 711 | + "desc format = 'brief' select * from t left join (select id-2 as b from t) A on A.b=t.id", |
| 712 | + "desc format = 'brief' select * from t right join (select id-2 as b from t) A on A.b=t.id", |
| 713 | + "desc format = 'brief' select A.b, B.b from (select id-2 as b from t) B join (select id-2 as b from t) A on A.b=B.b", |
| 714 | + "desc format = 'brief' select A.id from t as A where exists (select 1 from t where t.id=A.id)", |
| 715 | + "desc format = 'brief' select A.id from t as A where not exists (select 1 from t where t.id=A.id)", |
| 716 | + "desc format = 'brief' SELECT FROM_UNIXTIME(name,'%Y-%m-%d') FROM t;" |
| 717 | + ] |
| 718 | + }, |
673 | 719 | { |
674 | 720 | "name": "TestPushDownProjectionForTiFlash", |
675 | 721 | "cases": [ |
|
0 commit comments