From 8c0789e061d7cef67ab7e1feeaf030c2ae26962a Mon Sep 17 00:00:00 2001 From: Pxl Date: Mon, 16 Sep 2024 00:15:37 +0800 Subject: [PATCH] [Chore](case) move slow case to p1 (#40860) ## Proposed changes move slow case to p1 --- .../data/nereids_syntax_p1/mv/agg_mv_test.dat | 27 + .../mv/aggregate/agg_sync_mv.out | 1516 +++++++++++++++++ .../mv/aggregate/agg_sync_mv.groovy | 13 - .../mv/aggregate/agg_sync_mv.groovy | 552 ++++++ .../suites/nereids_syntax_p1/mv/load.groovy | 129 ++ 5 files changed, 2224 insertions(+), 13 deletions(-) create mode 100644 regression-test/data/nereids_syntax_p1/mv/agg_mv_test.dat create mode 100644 regression-test/data/nereids_syntax_p1/mv/aggregate/agg_sync_mv.out create mode 100644 regression-test/suites/nereids_syntax_p1/mv/aggregate/agg_sync_mv.groovy create mode 100644 regression-test/suites/nereids_syntax_p1/mv/load.groovy diff --git a/regression-test/data/nereids_syntax_p1/mv/agg_mv_test.dat b/regression-test/data/nereids_syntax_p1/mv/agg_mv_test.dat new file mode 100644 index 00000000000000..1d1d05317a208e --- /dev/null +++ b/regression-test/data/nereids_syntax_p1/mv/agg_mv_test.dat @@ -0,0 +1,27 @@ +0;0;1;1;1;1;1;0.1;0.1;0.1;0.1;0.1;0.1;0.1;0.1;char11;char21;char31;varchar11;varchar21;varchar31;string1;2012-03-01;2012-03-01;2012-03-01 01:00:01;2012-03-01 01:00:01;2012-03-01 01:00:01;2012-03-01 01:00:01;[0];[0];[1];[1];[1];[1];[1];[0.1];[2012-03-01,2012-03-01];[2012-03-01 01:00:01];[2012-03-01,2012-03-01];[2012-03-01 01:00:01,2012-03-01 01:00:01,2012-03-01 01:00:01,2012-03-01 01:00:01];[char11,char21,char31];[char11,char21,char31,varchar11,varchar21,varchar31];[char21,char31,varchar11,varchar21,varchar31,string1];[0.1,0.1];ST_Point(12.1, 32.1);ST_Point(12.1, 32.1);5;5;116.4274406433;39.9020987219;0;1;4.321;LINESTRING (1 1, 2 2);POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0));{null:1,0:2,0:3};{null:1,1:2,2:3};{null:1,1:2};{null:1,1:2};{null:1,1:2};{null:1,1:2};{null:1,1.1:2};{null:1,1.1:2};{null:1,1.100:2};{null:1,"char1":2};{null:1,"vchar1":2};{null:1,"str1":2};{null:1,2012-03-01:2};{null:1,2012-03-01:2};{1:null,2:0,3:0};{1:null,2:1,3:2};{1:null,2:1};{1:null,2:1};{1:null,2:1};{1:null,2:1};{1:null,2:1.1};{1:null,2:1.1};{1:null,2:1.100};{1:null,2:"char1"};{1:null,2:"vchar1"};{1:null,2:"str1"};{1:null,2:2012-03-01};{1:null,2:2012-03-01};[];{"id":1} +1;0;2;2;2;2;2;0.2;0.2;0.2;0.2;0.2;0.2;0.2;0.2;char12;char22;char32;varchar12;varchar22;varchar32;string2;2012-03-02;2012-03-02;2012-03-02 02:01:02;2012-03-02 02:01:02;2012-03-02 02:01:02;2012-03-02 02:01:02;[0];[0];[2];[2];[2];[2];[2];[0.2];[2012-03-02,2012-03-02];[2012-03-02 02:01:02];[2012-03-02,2012-03-02];[2012-03-02 02:01:02,2012-03-02 02:01:02,2012-03-02 02:01:02,2012-03-02 02:01:02];[char12,char22,char32];[char12,char22,char32,varchar12,varchar22,varchar32];[char22,char32,varchar12,varchar22,varchar32,string2];[0.2,0.2];ST_Point(12.2, 32.2);ST_Point(12.2, 32.2);126.35620117;-39.939093;56.4274406433;66.9020987219;0;2;5.3;LINESTRING (1 1, 2 2);POLYGON ((1 1, 4 1, 4 4, 1 4, 1 1));{null:1,0:2,0:3};{null:1,2:2,1:3};{null:1,2:2};{null:1,2:2};{null:1,2:2};{null:1,2:2};{null:1,2.2:2};{null:1,2.2:2};{null:1,2.200:2};{null:1,"char2":2};{null:1,"vchar2":2};{null:1,"str2":2};{null:1,2012-03-02:2};{null:1,2012-03-02:2};{1:null,2:0,3:0};{1:null,2:2,3:1};{1:null,2:2};{1:null,2:2};{1:null,2:2};{1:null,2:2};{1:null,2:2.2};{1:null,2:2.2};{1:null,2:2.200};{1:null,2:"char2"};{1:null,2:"vchar2"};{1:null,2:"str2"};{1:null,2:2012-03-02};{1:null,2:2012-03-02};[];{"id":1} +2;0;3;3;3;3;3;0.3;0.3;0.3;0.3;0.3;0.3;0.3;0.3;char13;char23;char33;varchar13;varchar23;varchar33;string3;2012-03-03;2012-03-03;2012-03-03 03:02:03;2012-03-03 03:02:03;2012-03-03 03:02:03;2012-03-03 03:02:03;[0];[0];[3];[3];[3];[3];[3];[0.3];[2012-03-03,2012-03-03];[2012-03-03 03:02:03];[2012-03-03,2012-03-03];[2012-03-03 03:02:03,2012-03-03 03:02:03,2012-03-03 03:02:03,2012-03-03 03:02:03];[char13,char23,char33];[char13,char23,char33,varchar13,varchar23,varchar33];[char23,char33,varchar13,varchar23,varchar33,string3];[0.3,0.3];ST_Point(12.3, 32.3);ST_Point(12.3, 32.3);16.35620117;19.939093;76.4274406433;46.9020987219;0;3;7.321;LINESTRING (1 1, 2 2);POLYGON ((0 0, 12 0, 10 16, 1 10, 0 0));{null:1,0:2,0:3};{null:1,3:2,0:3};{null:1,3:2};{null:1,3:2};{null:1,3:2};{null:1,3:2};{null:1,3.3:2};{null:1,3.3:2};{null:1,3.300:2};{null:1,"char3":2};{null:1,"vchar3":2};{null:1,"str3":2};{null:1,2012-03-03:2};{null:1,2012-03-03:2};{1:null,2:0,3:0};{1:null,2:3,3:0};{1:null,2:3};{1:null,2:3};{1:null,2:3};{1:null,2:3};{1:null,2:3.3};{1:null,2:3.3};{1:null,2:3.300};{1:null,2:"char3"};{1:null,2:"vchar3"};{1:null,2:"str3"};{1:null,2:2012-03-03};{1:null,2:2012-03-03};[];{"id":1} +3;0;4;4;4;4;4;0.4;0.4;0.4;0.4;0.4;0.4;0.4;0.4;char11;char21;char31;varchar11;varchar21;varchar31;string1;2012-03-04;2012-03-04;2012-03-04 04:03:04;2012-03-04 04:03:04;2012-03-04 04:03:04;2012-03-04 04:03:04;[0];[0];[4];[4];[4];[4];[4];[0.4];[2012-03-04,2012-03-04];[2012-03-04 04:03:04];[2012-03-04,2012-03-04];[2012-03-04 04:03:04,2012-03-04 04:03:04,2012-03-04 04:03:04,2012-03-04 04:03:04];[char11,char21,char31];[char11,char21,char31,varchar11,varchar21,varchar31];[char21,char31,varchar11,varchar21,varchar31,string1];[0.4,0.4];ST_Point(12.4, 32.4);ST_Point(12.4, 32.4);-46.35620117;39.939093;23.4274406433;-26.9020987219;0;4;3.321;LINESTRING (1 1, 2 2);POLYGON ((1 1, 11 4, 42 44, 4 18, 1 1));{null:1,0:2,1:3};{null:1,4:2,9:3};{null:1,4:2};{null:1,4:2};{null:1,4:2};{null:1,4:2};{null:1,4.4:2};{null:1,4.4:2};{null:1,4.400:2};{null:1,"char4":2};{null:1,"vchar4":2};{null:1,"str4":2};{null:1,2012-03-04:2};{null:1,2012-03-04:2};{1:null,2:0,3:1};{1:null,2:4,3:9};{1:null,2:4};{1:null,2:4};{1:null,2:4};{1:null,2:4};{1:null,2:4.4};{1:null,2:4.4};{1:null,2:4.400};{1:null,2:"char4"};{1:null,2:"vchar4"};{1:null,2:"str4"};{1:null,2:2012-03-04};{1:null,2:2012-03-04};[];{"id":1} +4;0;5;5;5;5;5;0.5;0.5;0.5;0.5;0.5;0.5;0.5;0.5;char12;char22;char32;varchar12;varchar22;varchar32;string2;2012-03-05;2012-03-05;2012-03-05 05:04:05;2012-03-05 05:04:05;2012-03-05 05:04:05;2012-03-05 05:04:05;[0];[0];[5];[5];[5];[5];[5];[0.5];[2012-03-05,2012-03-05];[2012-03-05 05:04:05];[2012-03-05,2012-03-05];[2012-03-05 05:04:05,2012-03-05 05:04:05,2012-03-05 05:04:05,2012-03-05 05:04:05];[char12,char22,char32];[char12,char22,char32,varchar12,varchar22,varchar32];[char22,char32,varchar12,varchar22,varchar32,string2];[0.5,0.5];ST_Point(12.5, 32.5);ST_Point(12.5, 32.5);43.35620117;35.939093;35.4274406433;35.9020987219;0;5;2.321;LINESTRING (1 1, 2 2);POLYGON ((1 1, 16 1, 16 16, 1 16, 1 1));{null:1,0:2,1:3};{null:1,5:2,8:3};{null:1,5:2};{null:1,5:2};{null:1,5:2};{null:1,5:2};{null:1,5.5:2};{null:1,5.5:2};{null:1,5.500:2};{null:1,"char5":2};{null:1,"vchar5":2};{null:1,"str5":2};{null:1,2012-03-05:2};{null:1,2012-03-05:2};{1:null,2:0,3:1};{1:null,2:5,3:8};{1:null,2:5};{1:null,2:5};{1:null,2:5};{1:null,2:5};{1:null,2:5.5};{1:null,2:5.5};{1:null,2:5.500};{1:null,2:"char5"};{1:null,2:"vchar5"};{1:null,2:"str5"};{1:null,2:2012-03-05};{1:null,2:2012-03-05};[];{"id":1} +5;0;6;6;6;6;6;0.6;0.6;0.6;0.6;0.6;0.6;0.6;0.6;char13;char23;char33;varchar13;varchar23;varchar33;string3;2012-03-06;2012-03-06;2012-03-06 06:05:06;2012-03-06 06:05:06;2012-03-06 06:05:06;2012-03-06 06:05:06;[0];[0];[6];[6];[6];[6];[6];[0.6];[2012-03-06,2012-03-06];[2012-03-06 06:05:06];[2012-03-06,2012-03-06];[2012-03-06 06:05:06,2012-03-06 06:05:06,2012-03-06 06:05:06,2012-03-06 06:05:06];[char13,char23,char33];[char13,char23,char33,varchar13,varchar23,varchar33];[char23,char33,varchar13,varchar23,varchar33,string3];[0.6,0.6];ST_Point(12.6, 32.6);ST_Point(12.6, 32.6);47.35620117;26.939093;47.4274406433;75.9020987219;0;6;33.321;LINESTRING (1 1, 2 2);POLYGON ((4 4, 45 4, 45 45, 4 45, 4 4));{null:1,0:2,1:3};{null:1,6:2,7:3};{null:1,6:2};{null:1,6:2};{null:1,6:2};{null:1,6:2};{null:1,6.6:2};{null:1,6.6:2};{null:1,6.600:2};{null:1,"char6":2};{null:1,"vchar6":2};{null:1,"str6":2};{null:1,2012-03-06:2};{null:1,2012-03-06:2};{1:null,2:0,3:1};{1:null,2:6,3:7};{1:null,2:6};{1:null,2:6};{1:null,2:6};{1:null,2:6};{1:null,2:6.6};{1:null,2:6.6};{1:null,2:6.600};{1:null,2:"char6"};{1:null,2:"vchar6"};{1:null,2:"str6"};{1:null,2:2012-03-06};{1:null,2:2012-03-06};[];{"id":1} +6;0;7;7;7;7;7;0.7;0.7;0.7;0.7;0.7;0.7;0.7;0.7;char11;char21;char31;varchar11;varchar21;varchar31;string1;2012-03-07;2012-03-07;2012-03-07 07:06:07;2012-03-07 07:06:07;2012-03-07 07:06:07;2012-03-07 07:06:07;[0];[0];[7];[7];[7];[7];[7];[0.7];[2012-03-07,2012-03-07];[2012-03-07 07:06:07];[2012-03-07,2012-03-07];[2012-03-07 07:06:07,2012-03-07 07:06:07,2012-03-07 07:06:07,2012-03-07 07:06:07];[char11,char21,char31];[char11,char21,char31,varchar11,varchar21,varchar31];[char21,char31,varchar11,varchar21,varchar31,string1];[0.7,0.7];ST_Point(12.7, 32.7);ST_Point(12.7, 32.7);98.35620117;36.939093;57.4274406433;57.9020987219;0;7;45.321;LINESTRING (1 1, 2 2);POLYGON ((1 1, 34 1, 34 34, 1 34, 1 1));{null:1,1:2,0:3};{null:1,7:2,6:3};{null:1,7:2};{null:1,7:2};{null:1,7:2};{null:1,7:2};{null:1,7.7:2};{null:1,7.7:2};{null:1,7.700:2};{null:1,"char7":2};{null:1,"vchar7":2};{null:1,"str7":2};{null:1,2012-03-07:2};{null:1,2012-03-07:2};{1:null,2:1,3:0};{1:null,2:7,3:6};{1:null,2:7};{1:null,2:7};{1:null,2:7};{1:null,2:7};{1:null,2:7.7};{1:null,2:7.7};{1:null,2:7.700};{1:null,2:"char7"};{1:null,2:"vchar7"};{1:null,2:"str7"};{1:null,2:2012-03-07};{1:null,2:2012-03-07};[];{"id":1} +7;1;8;8;8;8;8;0.8;0.8;0.8;0.8;0.8;0.8;0.8;0.8;char12;char22;char32;varchar12;varchar22;varchar32;string2;2012-03-08;2012-03-08;2012-03-08 08:07:08;2012-03-08 08:07:08;2012-03-08 08:07:08;2012-03-08 08:07:08;[1];[1];[8];[8];[8];[8];[8];[0.8];[2012-03-08,2012-03-08];[2012-03-08 08:07:08];[2012-03-08,2012-03-08];[2012-03-08 08:07:08,2012-03-08 08:07:08,2012-03-08 08:07:08,2012-03-08 08:07:08];[char12,char22,char32];[char12,char22,char32,varchar12,varchar22,varchar32];[char22,char32,varchar12,varchar22,varchar32,string2];[0.8,0.8];ST_Point(11.1, 31.1);ST_Point(11.1, 31.1);-74.35620117;79.939093;59.4274406433;85.9020987219;0;8;66.321;LINESTRING (1 1, 2 2);POLYGON ((0 0, 38 4, 38 37, 4 1, 0 0));{null:1,1:2,0:3};{null:1,8:2,5:3};{null:1,8:2};{null:1,8:2};{null:1,8:2};{null:1,8:2};{null:1,8.8:2};{null:1,8.8:2};{null:1,8.800:2};{null:1,"char8":2};{null:1,"vchar8":2};{null:1,"str8":2};{null:1,2012-03-08:2};{null:1,2012-03-08:2};{1:null,2:1,3:0};{1:null,2:8,3:5};{1:null,2:8};{1:null,2:8};{1:null,2:8};{1:null,2:8};{1:null,2:8.8};{1:null,2:8.8};{1:null,2:8.800};{1:null,2:"char8"};{1:null,2:"vchar8"};{1:null,2:"str8"};{1:null,2:2012-03-08};{1:null,2:2012-03-08};[];{"id":1} +8;1;9;9;9;9;9;0.9;0.9;0.9;0.9;0.9;0.9;0.9;0.9;char13;char23;char33;varchar13;varchar23;varchar33;string3;2012-03-09;2012-03-09;2012-03-09 09:08:09;2012-03-09 09:08:09;2012-03-09 09:08:09;2012-03-09 09:08:09;[1];[1];[9];[9];[9];[9];[9];[0.9];[2012-03-09,2012-03-09];[2012-03-09 09:08:09];[2012-03-09,2012-03-09];[2012-03-09 09:08:09,2012-03-09 09:08:09,2012-03-09 09:08:09,2012-03-09 09:08:09];[char13,char23,char33];[char13,char23,char33,varchar13,varchar23,varchar33];[char23,char33,varchar13,varchar23,varchar33,string3];[0.9,0.9];ST_Point(12.1, 32.1);ST_Point(12.1, 32.1);90.35620117;47.939093;89.4274406433;58.9020987219;0;9;88.321;LINESTRING (1 1, 2 2);POLYGON ((1 1, 56 0, 67 89, 4 32, 1 1));{null:1,1:2,0:3};{null:1,9:2,4:3};{null:1,9:2};{null:1,9:2};{null:1,9:2};{null:1,9:2};{null:1,9.9:2};{null:1,9.9:2};{null:1,9.900:2};{null:1,"char9":2};{null:1,"vchar9":2};{null:1,"str9":2};{null:1,2012-03-09:2};{null:1,2012-03-09:2};{1:null,2:1,3:0};{1:null,2:9,3:4};{1:null,2:9};{1:null,2:9};{1:null,2:9};{1:null,2:9};{1:null,2:9.9};{1:null,2:9.9};{1:null,2:9.900};{1:null,2:"char9"};{1:null,2:"vchar9"};{1:null,2:"str9"};{1:null,2:2012-03-09};{1:null,2:2012-03-09};[];{"id":1} +9;1;10;10;10;10;10;1;1;1;1;1;1;1;1;char11;char21;char31;varchar11;varchar21;varchar31;string1;2012-03-10;2012-03-10;2012-03-10 10:09:10;2012-03-10 10:09:10;2012-03-10 10:09:10;2012-03-10 10:09:10;[1];[1];[10];[10];[10];[10];[10];[1];[2012-03-10,2012-03-10];[2012-03-10 10:09:10];[2012-03-10,2012-03-10];[2012-03-10 10:09:10,2012-03-10 10:09:10,2012-03-10 10:09:10,2012-03-10 10:09:10];[char11,char21,char31];[char11,char21,char31,varchar11,varchar21,varchar31];[char21,char31,varchar11,varchar21,varchar31,string1];[1,1];ST_Point(19.1, 39.1);ST_Point(19.1, 39.1);90.35620117;49.939093;89.4274406433;58.9020987219;0;10;76.321;LINESTRING (1 1, 2 2);POLYGON ((1 1, 5 0, 10 4, 4 3, 1 1));{null:1,1:2,1:3};{null:1,0:2,3:3};{null:1,0:2};{null:1,0:2};{null:1,0:2};{null:1,0:2};{null:1,0.0:2};{null:1,0.0:2};{null:1,0.000:2};{null:1,"char0":2};{null:1,"vchar0":2};{null:1,"str0":2};{null:1,2012-03-10:2};{null:1,2012-03-10:2};{1:null,2:1,3:1};{1:null,2:0,3:3};{1:null,2:0};{1:null,2:0};{1:null,2:0};{1:null,2:0};{1:null,2:0.0};{1:null,2:0.0};{1:null,2:0.000};{1:null,2:"char0"};{1:null,2:"vchar0"};{1:null,2:"str0"};{1:null,2:2012-03-10};{1:null,2:2012-03-10};[];{"id":1} +10;1;11;11;11;11;11;1.1;1.1;1.1;1.1;1.1;1.1;1.1;1.1;char12;char22;char32;varchar12;varchar22;varchar32;string2;2012-03-11;2012-03-11;2012-03-11 11:10:11;2012-03-11 11:10:11;2012-03-11 11:10:11;2012-03-11 11:10:11;[1];[1];[11];[11];[11];[11];[11];[1.1];[2012-03-11,2012-03-11];[2012-03-11 11:10:11];[2012-03-11,2012-03-11];[2012-03-11 11:10:11,2012-03-11 11:10:11,2012-03-11 11:10:11,2012-03-11 11:10:11];[char12,char22,char32];[char12,char22,char32,varchar12,varchar22,varchar32];[char22,char32,varchar12,varchar22,varchar32,string2];[1.1,1.1];ST_Point(17.1, 37.1);ST_Point(17.1, 37.1);90.35620117;59.939093;89.4274406433;58.9020987219;0;11;75.321;LINESTRING (1 1, 2 2);POLYGON ((1 1, 8 0, 48 34, 4 10, 1 1));{null:1,1:2,1:3};{null:1,1:2,2:3};{null:1,1:2};{null:1,1:2};{null:1,1:2};{null:1,1:2};{null:1,1.1:2};{null:1,1.1:2};{null:1,1.100:2};{null:1,"char1":2};{null:1,"vchar1":2};{null:1,"str1":2};{null:1,2012-03-11:2};{null:1,2012-03-11:2};{1:null,2:1,3:1};{1:null,2:1,3:2};{1:null,2:1};{1:null,2:1};{1:null,2:1};{1:null,2:1};{1:null,2:1.1};{1:null,2:1.1};{1:null,2:1.100};{1:null,2:"char1"};{1:null,2:"vchar1"};{1:null,2:"str1"};{1:null,2:2012-03-11};{1:null,2:2012-03-11};[];{"id":1} +11;1;12;12;12;12;12;1.2;1.2;1.2;1.2;1.2;1.2;1.2;1.2;char13;char23;char33;varchar13;varchar23;varchar33;string3;2012-03-12;2012-03-12;2012-03-12 12:11:12;2012-03-12 12:11:12;2012-03-12 12:11:12;2012-03-12 12:11:12;[1];[1];[12];[12];[12];[12];[12];[1.2];[2012-03-12,2012-03-12];[2012-03-12 12:11:12];[2012-03-12,2012-03-12];[2012-03-12 12:11:12,2012-03-12 12:11:12,2012-03-12 12:11:12,2012-03-12 12:11:12];[char13,char23,char33];[char13,char23,char33,varchar13,varchar23,varchar33];[char23,char33,varchar13,varchar23,varchar33,string3];[1.2,1.2];ST_Point(22.1, 22.1);ST_Point(22.1, 22.1);90.35620117;39.939093;89.4274406433;58.9020987219;0;12;100.321;LINESTRING (1 1, 2 2);POLYGON ((1 1, 9 4, 10 4, 4 1, 1 1));{null:1,1:2,1:3};{null:1,2:2,1:3};{null:1,2:2};{null:1,2:2};{null:1,2:2};{null:1,2:2};{null:1,2.2:2};{null:1,2.2:2};{null:1,2.200:2};{null:1,"char2":2};{null:1,"vchar2":2};{null:1,"str2":2};{null:1,2012-03-12:2};{null:1,2012-03-12:2};{1:null,2:1,3:1};{1:null,2:2,3:1};{1:null,2:2};{1:null,2:2};{1:null,2:2};{1:null,2:2};{1:null,2:2.2};{1:null,2:2.2};{1:null,2:2.200};{1:null,2:"char2"};{1:null,2:"vchar2"};{1:null,2:"str2"};{1:null,2:2012-03-12};{1:null,2:2012-03-12};[];{"id":1} +null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null +0;0;1;1;1;1;1;0.1;0.1;0.1;0.1;0.1;0.1;0.1;0.1;char11;char21;char31;varchar11;varchar21;varchar31;string1;2012-03-01;2012-03-01;2012-03-01 01:00:01;2012-03-01 01:00:01;2012-03-01 01:00:01;2012-03-01 01:00:01;[0];[0];[1];[1];[1];[1];[1];[0.1];[2012-03-01,2012-03-01];[2012-03-01 01:00:01];[2012-03-01,2012-03-01];[2012-03-01 01:00:01,2012-03-01 01:00:01,2012-03-01 01:00:01,2012-03-01 01:00:01];[char11,char21,char31];[char11,char21,char31,varchar11,varchar21,varchar31];[char21,char31,varchar11,varchar21,varchar31,string1];[0.1,0.1];ST_Point(12.1, 32.1);ST_Point(12.1, 32.1);5;5;116.4274406433;39.9020987219;0;1;4.321;LINESTRING (1 1, 2 2);POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0));{null:1,0:2,0:3};{null:1,1:2,2:3};{null:1,1:2};{null:1,1:2};{null:1,1:2};{null:1,1:2};{null:1,1.1:2};{null:1,1.1:2};{null:1,1.100:2};{null:1,"char1":2};{null:1,"vchar1":2};{null:1,"str1":2};{null:1,2012-03-01:2};{null:1,2012-03-01:2};{1:null,2:0,3:0};{1:null,2:1,3:2};{1:null,2:1};{1:null,2:1};{1:null,2:1};{1:null,2:1};{1:null,2:1.1};{1:null,2:1.1};{1:null,2:1.100};{1:null,2:"char1"};{1:null,2:"vchar1"};{1:null,2:"str1"};{1:null,2:2012-03-01};{1:null,2:2012-03-01};[];{"id":1} +1;0;2;2;2;2;2;0.2;0.2;0.2;0.2;0.2;0.2;0.2;0.2;char12;char22;char32;varchar12;varchar22;varchar32;string2;2012-03-02;2012-03-02;2012-03-02 02:01:02;2012-03-02 02:01:02;2012-03-02 02:01:02;2012-03-02 02:01:02;[0];[0];[2];[2];[2];[2];[2];[0.2];[2012-03-02,2012-03-02];[2012-03-02 02:01:02];[2012-03-02,2012-03-02];[2012-03-02 02:01:02,2012-03-02 02:01:02,2012-03-02 02:01:02,2012-03-02 02:01:02];[char12,char22,char32];[char12,char22,char32,varchar12,varchar22,varchar32];[char22,char32,varchar12,varchar22,varchar32,string2];[0.2,0.2];ST_Point(12.2, 32.2);ST_Point(12.2, 32.2);126.35620117;-39.939093;56.4274406433;66.9020987219;0;2;5.3;LINESTRING (1 1, 2 2);POLYGON ((1 1, 4 1, 4 4, 1 4, 1 1));{null:1,0:2,0:3};{null:1,2:2,1:3};{null:1,2:2};{null:1,2:2};{null:1,2:2};{null:1,2:2};{null:1,2.2:2};{null:1,2.2:2};{null:1,2.200:2};{null:1,"char2":2};{null:1,"vchar2":2};{null:1,"str2":2};{null:1,2012-03-02:2};{null:1,2012-03-02:2};{1:null,2:0,3:0};{1:null,2:2,3:1};{1:null,2:2};{1:null,2:2};{1:null,2:2};{1:null,2:2};{1:null,2:2.2};{1:null,2:2.2};{1:null,2:2.200};{1:null,2:"char2"};{1:null,2:"vchar2"};{1:null,2:"str2"};{1:null,2:2012-03-02};{1:null,2:2012-03-02};[];{"id":1} +2;0;3;3;3;3;3;0.3;0.3;0.3;0.3;0.3;0.3;0.3;0.3;char13;char23;char33;varchar13;varchar23;varchar33;string3;2012-03-03;2012-03-03;2012-03-03 03:02:03;2012-03-03 03:02:03;2012-03-03 03:02:03;2012-03-03 03:02:03;[0];[0];[3];[3];[3];[3];[3];[0.3];[2012-03-03,2012-03-03];[2012-03-03 03:02:03];[2012-03-03,2012-03-03];[2012-03-03 03:02:03,2012-03-03 03:02:03,2012-03-03 03:02:03,2012-03-03 03:02:03];[char13,char23,char33];[char13,char23,char33,varchar13,varchar23,varchar33];[char23,char33,varchar13,varchar23,varchar33,string3];[0.3,0.3];ST_Point(12.3, 32.3);ST_Point(12.3, 32.3);16.35620117;19.939093;76.4274406433;46.9020987219;0;3;7.321;LINESTRING (1 1, 2 2);POLYGON ((0 0, 12 0, 10 16, 1 10, 0 0));{null:1,0:2,0:3};{null:1,3:2,0:3};{null:1,3:2};{null:1,3:2};{null:1,3:2};{null:1,3:2};{null:1,3.3:2};{null:1,3.3:2};{null:1,3.300:2};{null:1,"char3":2};{null:1,"vchar3":2};{null:1,"str3":2};{null:1,2012-03-03:2};{null:1,2012-03-03:2};{1:null,2:0,3:0};{1:null,2:3,3:0};{1:null,2:3};{1:null,2:3};{1:null,2:3};{1:null,2:3};{1:null,2:3.3};{1:null,2:3.3};{1:null,2:3.300};{1:null,2:"char3"};{1:null,2:"vchar3"};{1:null,2:"str3"};{1:null,2:2012-03-03};{1:null,2:2012-03-03};[];{"id":1} +3;0;4;4;4;4;4;0.4;0.4;0.4;0.4;0.4;0.4;0.4;0.4;char11;char21;char31;varchar11;varchar21;varchar31;string1;2012-03-04;2012-03-04;2012-03-04 04:03:04;2012-03-04 04:03:04;2012-03-04 04:03:04;2012-03-04 04:03:04;[0];[0];[4];[4];[4];[4];[4];[0.4];[2012-03-04,2012-03-04];[2012-03-04 04:03:04];[2012-03-04,2012-03-04];[2012-03-04 04:03:04,2012-03-04 04:03:04,2012-03-04 04:03:04,2012-03-04 04:03:04];[char11,char21,char31];[char11,char21,char31,varchar11,varchar21,varchar31];[char21,char31,varchar11,varchar21,varchar31,string1];[0.4,0.4];ST_Point(12.4, 32.4);ST_Point(12.4, 32.4);-46.35620117;39.939093;23.4274406433;-26.9020987219;0;4;3.321;LINESTRING (1 1, 2 2);POLYGON ((1 1, 11 4, 42 44, 4 18, 1 1));{null:1,0:2,1:3};{null:1,4:2,9:3};{null:1,4:2};{null:1,4:2};{null:1,4:2};{null:1,4:2};{null:1,4.4:2};{null:1,4.4:2};{null:1,4.400:2};{null:1,"char4":2};{null:1,"vchar4":2};{null:1,"str4":2};{null:1,2012-03-04:2};{null:1,2012-03-04:2};{1:null,2:0,3:1};{1:null,2:4,3:9};{1:null,2:4};{1:null,2:4};{1:null,2:4};{1:null,2:4};{1:null,2:4.4};{1:null,2:4.4};{1:null,2:4.400};{1:null,2:"char4"};{1:null,2:"vchar4"};{1:null,2:"str4"};{1:null,2:2012-03-04};{1:null,2:2012-03-04};[];{"id":1} +4;0;5;5;5;5;5;0.5;0.5;0.5;0.5;0.5;0.5;0.5;0.5;char12;char22;char32;varchar12;varchar22;varchar32;string2;2012-03-05;2012-03-05;2012-03-05 05:04:05;2012-03-05 05:04:05;2012-03-05 05:04:05;2012-03-05 05:04:05;[0];[0];[5];[5];[5];[5];[5];[0.5];[2012-03-05,2012-03-05];[2012-03-05 05:04:05];[2012-03-05,2012-03-05];[2012-03-05 05:04:05,2012-03-05 05:04:05,2012-03-05 05:04:05,2012-03-05 05:04:05];[char12,char22,char32];[char12,char22,char32,varchar12,varchar22,varchar32];[char22,char32,varchar12,varchar22,varchar32,string2];[0.5,0.5];ST_Point(12.5, 32.5);ST_Point(12.5, 32.5);43.35620117;35.939093;35.4274406433;35.9020987219;0;5;2.321;LINESTRING (1 1, 2 2);POLYGON ((1 1, 16 1, 16 16, 1 16, 1 1));{null:1,0:2,1:3};{null:1,5:2,8:3};{null:1,5:2};{null:1,5:2};{null:1,5:2};{null:1,5:2};{null:1,5.5:2};{null:1,5.5:2};{null:1,5.500:2};{null:1,"char5":2};{null:1,"vchar5":2};{null:1,"str5":2};{null:1,2012-03-05:2};{null:1,2012-03-05:2};{1:null,2:0,3:1};{1:null,2:5,3:8};{1:null,2:5};{1:null,2:5};{1:null,2:5};{1:null,2:5};{1:null,2:5.5};{1:null,2:5.5};{1:null,2:5.500};{1:null,2:"char5"};{1:null,2:"vchar5"};{1:null,2:"str5"};{1:null,2:2012-03-05};{1:null,2:2012-03-05};[];{"id":1} +5;0;6;6;6;6;6;0.6;0.6;0.6;0.6;0.6;0.6;0.6;0.6;char13;char23;char33;varchar13;varchar23;varchar33;string3;2012-03-06;2012-03-06;2012-03-06 06:05:06;2012-03-06 06:05:06;2012-03-06 06:05:06;2012-03-06 06:05:06;[0];[0];[6];[6];[6];[6];[6];[0.6];[2012-03-06,2012-03-06];[2012-03-06 06:05:06];[2012-03-06,2012-03-06];[2012-03-06 06:05:06,2012-03-06 06:05:06,2012-03-06 06:05:06,2012-03-06 06:05:06];[char13,char23,char33];[char13,char23,char33,varchar13,varchar23,varchar33];[char23,char33,varchar13,varchar23,varchar33,string3];[0.6,0.6];ST_Point(12.6, 32.6);ST_Point(12.6, 32.6);47.35620117;26.939093;47.4274406433;75.9020987219;0;6;33.321;LINESTRING (1 1, 2 2);POLYGON ((4 4, 45 4, 45 45, 4 45, 4 4));{null:1,0:2,1:3};{null:1,6:2,7:3};{null:1,6:2};{null:1,6:2};{null:1,6:2};{null:1,6:2};{null:1,6.6:2};{null:1,6.6:2};{null:1,6.600:2};{null:1,"char6":2};{null:1,"vchar6":2};{null:1,"str6":2};{null:1,2012-03-06:2};{null:1,2012-03-06:2};{1:null,2:0,3:1};{1:null,2:6,3:7};{1:null,2:6};{1:null,2:6};{1:null,2:6};{1:null,2:6};{1:null,2:6.6};{1:null,2:6.6};{1:null,2:6.600};{1:null,2:"char6"};{1:null,2:"vchar6"};{1:null,2:"str6"};{1:null,2:2012-03-06};{1:null,2:2012-03-06};[];{"id":1} +6;0;7;7;7;7;7;0.7;0.7;0.7;0.7;0.7;0.7;0.7;0.7;char11;char21;char31;varchar11;varchar21;varchar31;string1;2012-03-07;2012-03-07;2012-03-07 07:06:07;2012-03-07 07:06:07;2012-03-07 07:06:07;2012-03-07 07:06:07;[0];[0];[7];[7];[7];[7];[7];[0.7];[2012-03-07,2012-03-07];[2012-03-07 07:06:07];[2012-03-07,2012-03-07];[2012-03-07 07:06:07,2012-03-07 07:06:07,2012-03-07 07:06:07,2012-03-07 07:06:07];[char11,char21,char31];[char11,char21,char31,varchar11,varchar21,varchar31];[char21,char31,varchar11,varchar21,varchar31,string1];[0.7,0.7];ST_Point(12.7, 32.7);ST_Point(12.7, 32.7);98.35620117;36.939093;57.4274406433;57.9020987219;0;7;45.321;LINESTRING (1 1, 2 2);POLYGON ((1 1, 34 1, 34 34, 1 34, 1 1));{null:1,1:2,0:3};{null:1,7:2,6:3};{null:1,7:2};{null:1,7:2};{null:1,7:2};{null:1,7:2};{null:1,7.7:2};{null:1,7.7:2};{null:1,7.700:2};{null:1,"char7":2};{null:1,"vchar7":2};{null:1,"str7":2};{null:1,2012-03-07:2};{null:1,2012-03-07:2};{1:null,2:1,3:0};{1:null,2:7,3:6};{1:null,2:7};{1:null,2:7};{1:null,2:7};{1:null,2:7};{1:null,2:7.7};{1:null,2:7.7};{1:null,2:7.700};{1:null,2:"char7"};{1:null,2:"vchar7"};{1:null,2:"str7"};{1:null,2:2012-03-07};{1:null,2:2012-03-07};[];{"id":1} +7;1;8;8;8;8;8;0.8;0.8;0.8;0.8;0.8;0.8;0.8;0.8;char12;char22;char32;varchar12;varchar22;varchar32;string2;2012-03-08;2012-03-08;2012-03-08 08:07:08;2012-03-08 08:07:08;2012-03-08 08:07:08;2012-03-08 08:07:08;[1];[1];[8];[8];[8];[8];[8];[0.8];[2012-03-08,2012-03-08];[2012-03-08 08:07:08];[2012-03-08,2012-03-08];[2012-03-08 08:07:08,2012-03-08 08:07:08,2012-03-08 08:07:08,2012-03-08 08:07:08];[char12,char22,char32];[char12,char22,char32,varchar12,varchar22,varchar32];[char22,char32,varchar12,varchar22,varchar32,string2];[0.8,0.8];ST_Point(11.1, 31.1);ST_Point(11.1, 31.1);-74.35620117;79.939093;59.4274406433;85.9020987219;0;8;66.321;LINESTRING (1 1, 2 2);POLYGON ((0 0, 38 4, 38 37, 4 1, 0 0));{null:1,1:2,0:3};{null:1,8:2,5:3};{null:1,8:2};{null:1,8:2};{null:1,8:2};{null:1,8:2};{null:1,8.8:2};{null:1,8.8:2};{null:1,8.800:2};{null:1,"char8":2};{null:1,"vchar8":2};{null:1,"str8":2};{null:1,2012-03-08:2};{null:1,2012-03-08:2};{1:null,2:1,3:0};{1:null,2:8,3:5};{1:null,2:8};{1:null,2:8};{1:null,2:8};{1:null,2:8};{1:null,2:8.8};{1:null,2:8.8};{1:null,2:8.800};{1:null,2:"char8"};{1:null,2:"vchar8"};{1:null,2:"str8"};{1:null,2:2012-03-08};{1:null,2:2012-03-08};[];{"id":1} +8;1;9;9;9;9;9;0.9;0.9;0.9;0.9;0.9;0.9;0.9;0.9;char13;char23;char33;varchar13;varchar23;varchar33;string3;2012-03-09;2012-03-09;2012-03-09 09:08:09;2012-03-09 09:08:09;2012-03-09 09:08:09;2012-03-09 09:08:09;[1];[1];[9];[9];[9];[9];[9];[0.9];[2012-03-09,2012-03-09];[2012-03-09 09:08:09];[2012-03-09,2012-03-09];[2012-03-09 09:08:09,2012-03-09 09:08:09,2012-03-09 09:08:09,2012-03-09 09:08:09];[char13,char23,char33];[char13,char23,char33,varchar13,varchar23,varchar33];[char23,char33,varchar13,varchar23,varchar33,string3];[0.9,0.9];ST_Point(12.1, 32.1);ST_Point(12.1, 32.1);90.35620117;47.939093;89.4274406433;58.9020987219;0;9;88.321;LINESTRING (1 1, 2 2);POLYGON ((1 1, 56 0, 67 89, 4 32, 1 1));{null:1,1:2,0:3};{null:1,9:2,4:3};{null:1,9:2};{null:1,9:2};{null:1,9:2};{null:1,9:2};{null:1,9.9:2};{null:1,9.9:2};{null:1,9.900:2};{null:1,"char9":2};{null:1,"vchar9":2};{null:1,"str9":2};{null:1,2012-03-09:2};{null:1,2012-03-09:2};{1:null,2:1,3:0};{1:null,2:9,3:4};{1:null,2:9};{1:null,2:9};{1:null,2:9};{1:null,2:9};{1:null,2:9.9};{1:null,2:9.9};{1:null,2:9.900};{1:null,2:"char9"};{1:null,2:"vchar9"};{1:null,2:"str9"};{1:null,2:2012-03-09};{1:null,2:2012-03-09};[];{"id":1} +9;1;10;10;10;10;10;1;1;1;1;1;1;1;1;char11;char21;char31;varchar11;varchar21;varchar31;string1;2012-03-10;2012-03-10;2012-03-10 10:09:10;2012-03-10 10:09:10;2012-03-10 10:09:10;2012-03-10 10:09:10;[1];[1];[10];[10];[10];[10];[10];[1];[2012-03-10,2012-03-10];[2012-03-10 10:09:10];[2012-03-10,2012-03-10];[2012-03-10 10:09:10,2012-03-10 10:09:10,2012-03-10 10:09:10,2012-03-10 10:09:10];[char11,char21,char31];[char11,char21,char31,varchar11,varchar21,varchar31];[char21,char31,varchar11,varchar21,varchar31,string1];[1,1];ST_Point(19.1, 39.1);ST_Point(19.1, 39.1);90.35620117;49.939093;89.4274406433;58.9020987219;0;10;76.321;LINESTRING (1 1, 2 2);POLYGON ((1 1, 5 0, 10 4, 4 3, 1 1));{null:1,1:2,1:3};{null:1,0:2,3:3};{null:1,0:2};{null:1,0:2};{null:1,0:2};{null:1,0:2};{null:1,0.0:2};{null:1,0.0:2};{null:1,0.000:2};{null:1,"char0":2};{null:1,"vchar0":2};{null:1,"str0":2};{null:1,2012-03-10:2};{null:1,2012-03-10:2};{1:null,2:1,3:1};{1:null,2:0,3:3};{1:null,2:0};{1:null,2:0};{1:null,2:0};{1:null,2:0};{1:null,2:0.0};{1:null,2:0.0};{1:null,2:0.000};{1:null,2:"char0"};{1:null,2:"vchar0"};{1:null,2:"str0"};{1:null,2:2012-03-10};{1:null,2:2012-03-10};[];{"id":1} +10;1;11;11;11;11;11;1.1;1.1;1.1;1.1;1.1;1.1;1.1;1.1;char12;char22;char32;varchar12;varchar22;varchar32;string2;2012-03-11;2012-03-11;2012-03-11 11:10:11;2012-03-11 11:10:11;2012-03-11 11:10:11;2012-03-11 11:10:11;[1];[1];[11];[11];[11];[11];[11];[1.1];[2012-03-11,2012-03-11];[2012-03-11 11:10:11];[2012-03-11,2012-03-11];[2012-03-11 11:10:11,2012-03-11 11:10:11,2012-03-11 11:10:11,2012-03-11 11:10:11];[char12,char22,char32];[char12,char22,char32,varchar12,varchar22,varchar32];[char22,char32,varchar12,varchar22,varchar32,string2];[1.1,1.1];ST_Point(17.1, 37.1);ST_Point(17.1, 37.1);90.35620117;59.939093;89.4274406433;58.9020987219;0;11;75.321;LINESTRING (1 1, 2 2);POLYGON ((1 1, 8 0, 48 34, 4 10, 1 1));{null:1,1:2,1:3};{null:1,1:2,2:3};{null:1,1:2};{null:1,1:2};{null:1,1:2};{null:1,1:2};{null:1,1.1:2};{null:1,1.1:2};{null:1,1.100:2};{null:1,"char1":2};{null:1,"vchar1":2};{null:1,"str1":2};{null:1,2012-03-11:2};{null:1,2012-03-11:2};{1:null,2:1,3:1};{1:null,2:1,3:2};{1:null,2:1};{1:null,2:1};{1:null,2:1};{1:null,2:1};{1:null,2:1.1};{1:null,2:1.1};{1:null,2:1.100};{1:null,2:"char1"};{1:null,2:"vchar1"};{1:null,2:"str1"};{1:null,2:2012-03-11};{1:null,2:2012-03-11};[];{"id":1} +11;1;12;12;12;12;12;1.2;1.2;1.2;1.2;1.2;1.2;1.2;1.2;char13;char23;char33;varchar13;varchar23;varchar33;string3;2012-03-12;2012-03-12;2012-03-12 12:11:12;2012-03-12 12:11:12;2012-03-12 12:11:12;2012-03-12 12:11:12;[1];[1];[12];[12];[12];[12];[12];[1.2];[2012-03-12,2012-03-12];[2012-03-12 12:11:12];[2012-03-12,2012-03-12];[2012-03-12 12:11:12,2012-03-12 12:11:12,2012-03-12 12:11:12,2012-03-12 12:11:12];[char13,char23,char33];[char13,char23,char33,varchar13,varchar23,varchar33];[char23,char33,varchar13,varchar23,varchar33,string3];[1.2,1.2];ST_Point(22.1, 22.1);ST_Point(22.1, 22.1);90.35620117;39.939093;89.4274406433;58.9020987219;0;12;100.321;LINESTRING (1 1, 2 2);POLYGON ((1 1, 9 4, 10 4, 4 1, 1 1));{null:1,1:2,1:3};{null:1,2:2,1:3};{null:1,2:2};{null:1,2:2};{null:1,2:2};{null:1,2:2};{null:1,2.2:2};{null:1,2.2:2};{null:1,2.200:2};{null:1,"char2":2};{null:1,"vchar2":2};{null:1,"str2":2};{null:1,2012-03-12:2};{null:1,2012-03-12:2};{1:null,2:1,3:1};{1:null,2:2,3:1};{1:null,2:2};{1:null,2:2};{1:null,2:2};{1:null,2:2};{1:null,2:2.2};{1:null,2:2.2};{1:null,2:2.200};{1:null,2:"char2"};{1:null,2:"vchar2"};{1:null,2:"str2"};{1:null,2:2012-03-12};{1:null,2:2012-03-12};[];{"id":1} +null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null;null +null;0;1;1;1;1;1;0.1;0.1;0.1;0.1;0.1;0.1;0.1;0.1;char11;char21;char31;varchar11;varchar21;varchar31;string1;2012-03-01;2012-03-01;2012-03-01 01:00:01;2012-03-01 01:00:01;2012-03-01 01:00:01;2012-03-01 01:00:01;[0];[0];[1];[1];[1];[1];[1];[0.1];[2012-03-01,2012-03-01];[2012-03-01 01:00:01];[2012-03-01,2012-03-01];[2012-03-01 01:00:01,2012-03-01 01:00:01,2012-03-01 01:00:01,2012-03-01 01:00:01];[char11,char21,char31];[char11,char21,char31,varchar11,varchar21,varchar31];[char21,char31,varchar11,varchar21,varchar31,string1];[0.1,0.1];ST_Point(12.1, 32.1);ST_Point(12.1, 32.1);5;5;116.4274406433;39.9020987219;0;1;4.321;LINESTRING (1 1, 2 2);POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0));{null:1,0:2,0:3};{null:1,1:2,2:3};{null:1,1:2};{null:1,1:2};{null:1,1:2};{null:1,1:2};{null:1,1.1:2};{null:1,1.1:2};{null:1,1.100:2};{null:1,"char1":2};{null:1,"vchar1":2};{null:1,"str1":2};{null:1,2012-03-01:2};{null:1,2012-03-01:2};{1:null,2:0,3:0};{1:null,2:1,3:2};{1:null,2:1};{1:null,2:1};{1:null,2:1};{1:null,2:1};{1:null,2:1.1};{1:null,2:1.1};{1:null,2:1.100};{1:null,2:"char1"};{1:null,2:"vchar1"};{1:null,2:"str1"};{1:null,2:2012-03-01};{1:null,2:2012-03-01};[];{"id":1} diff --git a/regression-test/data/nereids_syntax_p1/mv/aggregate/agg_sync_mv.out b/regression-test/data/nereids_syntax_p1/mv/aggregate/agg_sync_mv.out new file mode 100644 index 00000000000000..fee553ed3d091d --- /dev/null +++ b/regression-test/data/nereids_syntax_p1/mv/aggregate/agg_sync_mv.out @@ -0,0 +1,1516 @@ +-- This file is automatically generated. You should know what you did if you want to edit this +-- !select_any_value -- +\N 1 +0 1 +1 2 +2 3 +3 4 +4 5 +5 6 +6 7 +7 8 +8 9 +9 10 +10 11 +11 12 + +-- !select_any_value_mv -- +\N 1 +0 1 +1 2 +2 3 +3 4 +4 5 +5 6 +6 7 +7 8 +8 9 +9 10 +10 11 +11 12 + +-- !select_approx_count_distinct -- +\N 1 +0 1 +1 1 +2 1 +3 1 +4 1 +5 1 +6 1 +7 1 +8 1 +9 1 +10 1 +11 1 + +-- !select_approx_count_distinct_mv -- +\N 1 +0 1 +1 1 +2 1 +3 1 +4 1 +5 1 +6 1 +7 1 +8 1 +9 1 +10 1 +11 1 + +-- !select_collect_set -- +\N [1] +0 [1] +1 [2] +2 [3] +3 [4] +4 [5] +5 [6] +6 [7] +7 [8] +8 [9] +9 [10] +10 [11] +11 [12] + +-- !select_collect_set_mv -- +\N [1] +0 [1] +1 [2] +2 [3] +3 [4] +4 [5] +5 [6] +6 [7] +7 [8] +8 [9] +9 [10] +10 [11] +11 [12] + +-- !select_collect_list -- +\N [1, 1, 1, 1, 1] +0 [1, 1, 1, 1, 1, 1, 1, 1, 1, 1] +1 [2, 2, 2, 2, 2, 2, 2, 2, 2, 2] +2 [3, 3, 3, 3, 3, 3, 3, 3, 3, 3] +3 [4, 4, 4, 4, 4, 4, 4, 4, 4, 4] +4 [5, 5, 5, 5, 5, 5, 5, 5, 5, 5] +5 [6, 6, 6, 6, 6, 6, 6, 6, 6, 6] +6 [7, 7, 7, 7, 7, 7, 7, 7, 7, 7] +7 [8, 8, 8, 8, 8, 8, 8, 8, 8, 8] +8 [9, 9, 9, 9, 9, 9, 9, 9, 9, 9] +9 [10, 10, 10, 10, 10, 10, 10, 10, 10, 10] +10 [11, 11, 11, 11, 11, 11, 11, 11, 11, 11] +11 [12, 12, 12, 12, 12, 12, 12, 12, 12, 12] + +-- !select_collect_list_mv -- +\N [1, 1, 1, 1, 1] +0 [1, 1, 1, 1, 1, 1, 1, 1, 1, 1] +1 [2, 2, 2, 2, 2, 2, 2, 2, 2, 2] +2 [3, 3, 3, 3, 3, 3, 3, 3, 3, 3] +3 [4, 4, 4, 4, 4, 4, 4, 4, 4, 4] +4 [5, 5, 5, 5, 5, 5, 5, 5, 5, 5] +5 [6, 6, 6, 6, 6, 6, 6, 6, 6, 6] +6 [7, 7, 7, 7, 7, 7, 7, 7, 7, 7] +7 [8, 8, 8, 8, 8, 8, 8, 8, 8, 8] +8 [9, 9, 9, 9, 9, 9, 9, 9, 9, 9] +9 [10, 10, 10, 10, 10, 10, 10, 10, 10, 10] +10 [11, 11, 11, 11, 11, 11, 11, 11, 11, 11] +11 [12, 12, 12, 12, 12, 12, 12, 12, 12, 12] + +-- !select_corr -- +\N 0.0 +0 0.0 +1 0.0 +2 0.0 +3 0.0 +4 0.0 +5 0.0 +6 0.0 +7 0.0 +8 0.0 +9 0.0 +10 0.0 +11 0.0 + +-- !select_corr_mv -- +\N 0.0 +0 0.0 +1 0.0 +2 0.0 +3 0.0 +4 0.0 +5 0.0 +6 0.0 +7 0.0 +8 0.0 +9 0.0 +10 0.0 +11 0.0 + +-- !select_percentile_array -- +\N [1, 1, 1] +0 [1, 1, 1] +1 [2, 2, 2] +2 [3, 3, 3] +3 [4, 4, 4] +4 [5, 5, 5] +5 [6, 6, 6] +6 [7, 7, 7] +7 [8, 8, 8] +8 [9, 9, 9] +9 [10, 10, 10] +10 [11, 11, 11] +11 [12, 12, 12] + +-- !select_percentile_array_mv -- +\N [1, 1, 1] +0 [1, 1, 1] +1 [2, 2, 2] +2 [3, 3, 3] +3 [4, 4, 4] +4 [5, 5, 5] +5 [6, 6, 6] +6 [7, 7, 7] +7 [8, 8, 8] +8 [9, 9, 9] +9 [10, 10, 10] +10 [11, 11, 11] +11 [12, 12, 12] + +-- !select_quantile_union -- +\N \N +0 \N +1 \N +2 \N +3 \N +4 \N +5 \N +6 \N +7 \N +8 \N +9 \N +10 \N +11 \N + +-- !select_quantile_union_mv -- +\N \N +0 \N +1 \N +2 \N +3 \N +4 \N +5 \N +6 \N +7 \N +8 \N +9 \N +10 \N +11 \N + +-- !select_count_by_enum -- +\N [{"cbe":{"string1":5,"null":10},"notnull":15,"null":0,"all":15}] +0 [{"cbe":{"string1":10},"notnull":10,"null":0,"all":10}] +1 [{"cbe":{"string2":10},"notnull":10,"null":0,"all":10}] +2 [{"cbe":{"string3":10},"notnull":10,"null":0,"all":10}] +3 [{"cbe":{"string1":10},"notnull":10,"null":0,"all":10}] +4 [{"cbe":{"string2":10},"notnull":10,"null":0,"all":10}] +5 [{"cbe":{"string3":10},"notnull":10,"null":0,"all":10}] +6 [{"cbe":{"string1":10},"notnull":10,"null":0,"all":10}] +7 [{"cbe":{"string2":10},"notnull":10,"null":0,"all":10}] +8 [{"cbe":{"string3":10},"notnull":10,"null":0,"all":10}] +9 [{"cbe":{"string1":10},"notnull":10,"null":0,"all":10}] +10 [{"cbe":{"string2":10},"notnull":10,"null":0,"all":10}] +11 [{"cbe":{"string3":10},"notnull":10,"null":0,"all":10}] + +-- !select_count_by_enum_mv -- +\N [{"cbe":{"string1":5,"null":10},"notnull":15,"null":0,"all":15}] +0 [{"cbe":{"string1":10},"notnull":10,"null":0,"all":10}] +1 [{"cbe":{"string2":10},"notnull":10,"null":0,"all":10}] +2 [{"cbe":{"string3":10},"notnull":10,"null":0,"all":10}] +3 [{"cbe":{"string1":10},"notnull":10,"null":0,"all":10}] +4 [{"cbe":{"string2":10},"notnull":10,"null":0,"all":10}] +5 [{"cbe":{"string3":10},"notnull":10,"null":0,"all":10}] +6 [{"cbe":{"string1":10},"notnull":10,"null":0,"all":10}] +7 [{"cbe":{"string2":10},"notnull":10,"null":0,"all":10}] +8 [{"cbe":{"string3":10},"notnull":10,"null":0,"all":10}] +9 [{"cbe":{"string1":10},"notnull":10,"null":0,"all":10}] +10 [{"cbe":{"string2":10},"notnull":10,"null":0,"all":10}] +11 [{"cbe":{"string3":10},"notnull":10,"null":0,"all":10}] + +-- !select_avg_weighted -- +\N 1.0 +0 1.0 +1 2.0 +2 3.0 +3 4.0 +4 5.0 +5 6.0 +6 6.999999999999999 +7 8.0 +8 9.0 +9 10.0 +10 11.000000000000002 +11 12.0 + +-- !select_avg_weighted_mv -- +\N 1.0 +0 1.0 +1 2.0 +2 3.0 +3 4.0 +4 5.0 +5 6.0 +6 6.999999999999999 +7 8.0 +8 9.0 +9 10.0 +10 11.000000000000002 +11 12.0 + +-- !select_bitmap_intersect -- +\N \N +0 \N +1 \N +2 \N +3 \N +4 \N +5 \N +6 \N +7 \N +8 \N +9 \N +10 \N +11 \N + +-- !select_bitmap_intersect_mv -- +\N \N +0 \N +1 \N +2 \N +3 \N +4 \N +5 \N +6 \N +7 \N +8 \N +9 \N +10 \N +11 \N + +-- !select_bitmap_agg -- +\N \N +0 \N +1 \N +2 \N +3 \N +4 \N +5 \N +6 \N +7 \N +8 \N +9 \N +10 \N +11 \N + +-- !select_bitmap_agg_mv -- +\N \N +0 \N +1 \N +2 \N +3 \N +4 \N +5 \N +6 \N +7 \N +8 \N +9 \N +10 \N +11 \N + +-- !select_bitmap_union -- +\N \N +0 \N +1 \N +2 \N +3 \N +4 \N +5 \N +6 \N +7 \N +8 \N +9 \N +10 \N +11 \N + +-- !select_bitmap_union_mv -- +\N \N +0 \N +1 \N +2 \N +3 \N +4 \N +5 \N +6 \N +7 \N +8 \N +9 \N +10 \N +11 \N + +-- !select_bitmap_union_count -- +\N 1 +0 1 +1 1 +2 1 +3 1 +4 1 +5 1 +6 1 +7 1 +8 1 +9 1 +10 1 +11 1 + +-- !select_bitmap_union_count_mv -- +\N 1 +0 1 +1 1 +2 1 +3 1 +4 1 +5 1 +6 1 +7 1 +8 1 +9 1 +10 1 +11 1 + +-- !select_bitmap_union_int -- +\N 1 +0 1 +1 1 +2 1 +3 1 +4 1 +5 1 +6 1 +7 1 +8 1 +9 1 +10 1 +11 1 + +-- !select_bitmap_union_int_mv -- +\N 1 +0 1 +1 1 +2 1 +3 1 +4 1 +5 1 +6 1 +7 1 +8 1 +9 1 +10 1 +11 1 + +-- !select_group_array_intersect -- +\N [] +0 [1] +1 [2] +2 [3] +3 [4] +4 [5] +5 [6] +6 [7] +7 [8] +8 [9] +9 [10] +10 [11] +11 [12] + +-- !select_group_array_intersect_mv -- +\N [] +0 [1] +1 [2] +2 [3] +3 [4] +4 [5] +5 [6] +6 [7] +7 [8] +8 [9] +9 [10] +10 [11] +11 [12] + +-- !select_group_bit_and -- +\N 1 +0 1 +1 2 +2 3 +3 4 +4 5 +5 6 +6 7 +7 8 +8 9 +9 10 +10 11 +11 12 + +-- !select_group_bit_and_mv -- +\N 1 +0 1 +1 2 +2 3 +3 4 +4 5 +5 6 +6 7 +7 8 +8 9 +9 10 +10 11 +11 12 + +-- !select_group_bit_or -- +\N 1 +0 1 +1 2 +2 3 +3 4 +4 5 +5 6 +6 7 +7 8 +8 9 +9 10 +10 11 +11 12 + +-- !select_group_bit_or_mv -- +\N 1 +0 1 +1 2 +2 3 +3 4 +4 5 +5 6 +6 7 +7 8 +8 9 +9 10 +10 11 +11 12 + +-- !select_group_bit_xor -- +\N 1 +0 0 +1 0 +2 0 +3 0 +4 0 +5 0 +6 0 +7 0 +8 0 +9 0 +10 0 +11 0 + +-- !select_group_bit_xor_mv -- +\N 1 +0 0 +1 0 +2 0 +3 0 +4 0 +5 0 +6 0 +7 0 +8 0 +9 0 +10 0 +11 0 + +-- !select_group_bitmap_xor -- +\N \N +0 \N +1 \N +2 \N +3 \N +4 \N +5 \N +6 \N +7 \N +8 \N +9 \N +10 \N +11 \N + +-- !select_group_bitmap_xor_mv -- +\N \N +0 \N +1 \N +2 \N +3 \N +4 \N +5 \N +6 \N +7 \N +8 \N +9 \N +10 \N +11 \N + +-- !select_hll_union_agg -- +\N 1 +0 1 +1 1 +2 1 +3 1 +4 1 +5 1 +6 1 +7 1 +8 1 +9 1 +10 1 +11 1 + +-- !select_hll_union_agg_mv -- +\N 1 +0 1 +1 1 +2 1 +3 1 +4 1 +5 1 +6 1 +7 1 +8 1 +9 1 +10 1 +11 1 + +-- !select_hll_union -- +\N \N +0 \N +1 \N +2 \N +3 \N +4 \N +5 \N +6 \N +7 \N +8 \N +9 \N +10 \N +11 \N + +-- !select_hll_union_mv -- +\N \N +0 \N +1 \N +2 \N +3 \N +4 \N +5 \N +6 \N +7 \N +8 \N +9 \N +10 \N +11 \N + +-- !select_intersect_count -- +\N 0 +0 0 +1 0 +2 0 +3 0 +4 0 +5 0 +6 0 +7 0 +8 0 +9 0 +10 0 +11 0 + +-- !select_intersect_count_mv -- +\N 0 +0 0 +1 0 +2 0 +3 0 +4 0 +5 0 +6 0 +7 0 +8 0 +9 0 +10 0 +11 0 + +-- !select_group_concat -- +\N 1,1,1,1,1 +0 1,1,1,1,1,1,1,1,1,1 +1 2,2,2,2,2,2,2,2,2,2 +2 3,3,3,3,3,3,3,3,3,3 +3 4,4,4,4,4,4,4,4,4,4 +4 5,5,5,5,5,5,5,5,5,5 +5 6,6,6,6,6,6,6,6,6,6 +6 7,7,7,7,7,7,7,7,7,7 +7 8,8,8,8,8,8,8,8,8,8 +8 9,9,9,9,9,9,9,9,9,9 +9 10,10,10,10,10,10,10,10,10,10 +10 11,11,11,11,11,11,11,11,11,11 +11 12,12,12,12,12,12,12,12,12,12 + +-- !select_group_concat_mv -- +\N 1,1,1,1,1 +0 1,1,1,1,1,1,1,1,1,1 +1 2,2,2,2,2,2,2,2,2,2 +2 3,3,3,3,3,3,3,3,3,3 +3 4,4,4,4,4,4,4,4,4,4 +4 5,5,5,5,5,5,5,5,5,5 +5 6,6,6,6,6,6,6,6,6,6 +6 7,7,7,7,7,7,7,7,7,7 +7 8,8,8,8,8,8,8,8,8,8 +8 9,9,9,9,9,9,9,9,9,9 +9 10,10,10,10,10,10,10,10,10,10 +10 11,11,11,11,11,11,11,11,11,11 +11 12,12,12,12,12,12,12,12,12,12 + +-- !select_multi_distinct_group_concat -- +\N 1 +0 1 +1 2 +2 3 +3 4 +4 5 +5 6 +6 7 +7 8 +8 9 +9 10 +10 11 +11 12 + +-- !select_multi_distinct_group_concat_mv -- +\N 1 +0 1 +1 2 +2 3 +3 4 +4 5 +5 6 +6 7 +7 8 +8 9 +9 10 +10 11 +11 12 + +-- !select_multi_distinct_sum0 -- +\N 1 +0 1 +1 2 +2 3 +3 4 +4 5 +5 6 +6 7 +7 8 +8 9 +9 10 +10 11 +11 12 + +-- !select_multi_distinct_sum0_mv -- +\N 1 +0 1 +1 2 +2 3 +3 4 +4 5 +5 6 +6 7 +7 8 +8 9 +9 10 +10 11 +11 12 + +-- !select_multi_distinct_sum -- +\N 1 +0 1 +1 2 +2 3 +3 4 +4 5 +5 6 +6 7 +7 8 +8 9 +9 10 +10 11 +11 12 + +-- !select_multi_distinct_sum_mv -- +\N 1 +0 1 +1 2 +2 3 +3 4 +4 5 +5 6 +6 7 +7 8 +8 9 +9 10 +10 11 +11 12 + +-- !select_histogram -- +\N {"num_buckets":1,"buckets":[{"lower":"1","upper":"1","ndv":1,"count":5,"pre_sum":0}]} +0 {"num_buckets":1,"buckets":[{"lower":"1","upper":"1","ndv":1,"count":10,"pre_sum":0}]} +1 {"num_buckets":1,"buckets":[{"lower":"2","upper":"2","ndv":1,"count":10,"pre_sum":0}]} +2 {"num_buckets":1,"buckets":[{"lower":"3","upper":"3","ndv":1,"count":10,"pre_sum":0}]} +3 {"num_buckets":1,"buckets":[{"lower":"4","upper":"4","ndv":1,"count":10,"pre_sum":0}]} +4 {"num_buckets":1,"buckets":[{"lower":"5","upper":"5","ndv":1,"count":10,"pre_sum":0}]} +5 {"num_buckets":1,"buckets":[{"lower":"6","upper":"6","ndv":1,"count":10,"pre_sum":0}]} +6 {"num_buckets":1,"buckets":[{"lower":"7","upper":"7","ndv":1,"count":10,"pre_sum":0}]} +7 {"num_buckets":1,"buckets":[{"lower":"8","upper":"8","ndv":1,"count":10,"pre_sum":0}]} +8 {"num_buckets":1,"buckets":[{"lower":"9","upper":"9","ndv":1,"count":10,"pre_sum":0}]} +9 {"num_buckets":1,"buckets":[{"lower":"10","upper":"10","ndv":1,"count":10,"pre_sum":0}]} +10 {"num_buckets":1,"buckets":[{"lower":"11","upper":"11","ndv":1,"count":10,"pre_sum":0}]} +11 {"num_buckets":1,"buckets":[{"lower":"12","upper":"12","ndv":1,"count":10,"pre_sum":0}]} + +-- !select_histogram_mv -- +\N {"num_buckets":1,"buckets":[{"lower":"1","upper":"1","ndv":1,"count":5,"pre_sum":0}]} +0 {"num_buckets":1,"buckets":[{"lower":"1","upper":"1","ndv":1,"count":10,"pre_sum":0}]} +1 {"num_buckets":1,"buckets":[{"lower":"2","upper":"2","ndv":1,"count":10,"pre_sum":0}]} +2 {"num_buckets":1,"buckets":[{"lower":"3","upper":"3","ndv":1,"count":10,"pre_sum":0}]} +3 {"num_buckets":1,"buckets":[{"lower":"4","upper":"4","ndv":1,"count":10,"pre_sum":0}]} +4 {"num_buckets":1,"buckets":[{"lower":"5","upper":"5","ndv":1,"count":10,"pre_sum":0}]} +5 {"num_buckets":1,"buckets":[{"lower":"6","upper":"6","ndv":1,"count":10,"pre_sum":0}]} +6 {"num_buckets":1,"buckets":[{"lower":"7","upper":"7","ndv":1,"count":10,"pre_sum":0}]} +7 {"num_buckets":1,"buckets":[{"lower":"8","upper":"8","ndv":1,"count":10,"pre_sum":0}]} +8 {"num_buckets":1,"buckets":[{"lower":"9","upper":"9","ndv":1,"count":10,"pre_sum":0}]} +9 {"num_buckets":1,"buckets":[{"lower":"10","upper":"10","ndv":1,"count":10,"pre_sum":0}]} +10 {"num_buckets":1,"buckets":[{"lower":"11","upper":"11","ndv":1,"count":10,"pre_sum":0}]} +11 {"num_buckets":1,"buckets":[{"lower":"12","upper":"12","ndv":1,"count":10,"pre_sum":0}]} + +-- !select_max_by -- +\N 1 +0 1 +1 2 +2 3 +3 4 +4 5 +5 6 +6 7 +7 8 +8 9 +9 10 +10 11 +11 12 + +-- !select_max_by_mv -- +\N 1 +0 1 +1 2 +2 3 +3 4 +4 5 +5 6 +6 7 +7 8 +8 9 +9 10 +10 11 +11 12 + +-- !select_min_by -- +\N 1 +0 1 +1 2 +2 3 +3 4 +4 5 +5 6 +6 7 +7 8 +8 9 +9 10 +10 11 +11 12 + +-- !select_min_by_mv -- +\N 1 +0 1 +1 2 +2 3 +3 4 +4 5 +5 6 +6 7 +7 8 +8 9 +9 10 +10 11 +11 12 + +-- !select_multi_distinct_count -- +\N 1 +0 1 +1 1 +2 1 +3 1 +4 1 +5 1 +6 1 +7 1 +8 1 +9 1 +10 1 +11 1 + +-- !select_multi_distinct_count_mv -- +\N 1 +0 1 +1 1 +2 1 +3 1 +4 1 +5 1 +6 1 +7 1 +8 1 +9 1 +10 1 +11 1 + +-- !select_ndv -- +\N 1 +0 1 +1 1 +2 1 +3 1 +4 1 +5 1 +6 1 +7 1 +8 1 +9 1 +10 1 +11 1 + +-- !select_ndv_mv -- +\N 1 +0 1 +1 1 +2 1 +3 1 +4 1 +5 1 +6 1 +7 1 +8 1 +9 1 +10 1 +11 1 + +-- !select_covar -- +\N 0.0 +0 0.0 +1 0.0 +2 0.0 +3 0.0 +4 0.0 +5 0.0 +6 0.0 +7 0.0 +8 0.0 +9 0.0 +10 0.0 +11 0.0 + +-- !select_covar_mv -- +\N 0.0 +0 0.0 +1 0.0 +2 0.0 +3 0.0 +4 0.0 +5 0.0 +6 0.0 +7 0.0 +8 0.0 +9 0.0 +10 0.0 +11 0.0 + +-- !select_covar_samp -- +\N 0.0 +0 0.0 +1 0.0 +2 0.0 +3 0.0 +4 0.0 +5 0.0 +6 0.0 +7 0.0 +8 0.0 +9 0.0 +10 0.0 +11 0.0 + +-- !select_covar_samp_mv -- +\N 0.0 +0 0.0 +1 0.0 +2 0.0 +3 0.0 +4 0.0 +5 0.0 +6 0.0 +7 0.0 +8 0.0 +9 0.0 +10 0.0 +11 0.0 + +-- !select_percentile -- +\N 1.0 +0 1.0 +1 2.0 +2 3.0 +3 4.0 +4 5.0 +5 6.0 +6 7.0 +7 8.0 +8 9.0 +9 10.0 +10 11.0 +11 12.0 + +-- !select_percentile_mv -- +\N 1.0 +0 1.0 +1 2.0 +2 3.0 +3 4.0 +4 5.0 +5 6.0 +6 7.0 +7 8.0 +8 9.0 +9 10.0 +10 11.0 +11 12.0 + +-- !select_percentile_approx -- +\N 1.0 +0 1.0 +1 2.0 +2 3.0 +3 4.0 +4 5.0 +5 6.0 +6 7.0 +7 8.0 +8 9.0 +9 10.0 +10 11.0 +11 12.0 + +-- !select_percentile_approx_mv -- +\N 1.0 +0 1.0 +1 2.0 +2 3.0 +3 4.0 +4 5.0 +5 6.0 +6 7.0 +7 8.0 +8 9.0 +9 10.0 +10 11.0 +11 12.0 + +-- !select_sequence_count -- +\N 0 +0 0 +1 0 +2 0 +3 0 +4 0 +5 0 +6 0 +7 0 +8 0 +9 0 +10 0 +11 0 + +-- !select_sequence_count_mv -- +\N 0 +0 0 +1 0 +2 0 +3 0 +4 0 +5 0 +6 0 +7 0 +8 0 +9 0 +10 0 +11 0 + +-- !select_sequence_match -- +\N false +0 false +1 false +2 false +3 false +4 false +5 false +6 false +7 false +8 false +9 false +10 false +11 false + +-- !select_sequence_match_mv -- +\N false +0 false +1 false +2 false +3 false +4 false +5 false +6 false +7 false +8 false +9 false +10 false +11 false + +-- !select_stddev -- +\N 0.0 +0 0.0 +1 0.0 +2 0.0 +3 0.0 +4 0.0 +5 0.0 +6 0.0 +7 0.0 +8 0.0 +9 0.0 +10 0.0 +11 0.0 + +-- !select_stddev_mv -- +\N 0.0 +0 0.0 +1 0.0 +2 0.0 +3 0.0 +4 0.0 +5 0.0 +6 0.0 +7 0.0 +8 0.0 +9 0.0 +10 0.0 +11 0.0 + +-- !select_stddev_pop -- +\N 0.0 +0 0.0 +1 0.0 +2 0.0 +3 0.0 +4 0.0 +5 0.0 +6 0.0 +7 0.0 +8 0.0 +9 0.0 +10 0.0 +11 0.0 + +-- !select_stddev_pop_mv -- +\N 0.0 +0 0.0 +1 0.0 +2 0.0 +3 0.0 +4 0.0 +5 0.0 +6 0.0 +7 0.0 +8 0.0 +9 0.0 +10 0.0 +11 0.0 + +-- !select_stddev_samp -- +\N 0.0 +0 0.0 +1 0.0 +2 0.0 +3 0.0 +4 0.0 +5 0.0 +6 0.0 +7 0.0 +8 0.0 +9 0.0 +10 0.0 +11 0.0 + +-- !select_stddev_samp_mv -- +\N 0.0 +0 0.0 +1 0.0 +2 0.0 +3 0.0 +4 0.0 +5 0.0 +6 0.0 +7 0.0 +8 0.0 +9 0.0 +10 0.0 +11 0.0 + +-- !select_sum0 -- +\N 5 +0 10 +1 20 +2 30 +3 40 +4 50 +5 60 +6 70 +7 80 +8 90 +9 100 +10 110 +11 120 + +-- !select_sum0_mv -- +\N 5 +0 10 +1 20 +2 30 +3 40 +4 50 +5 60 +6 70 +7 80 +8 90 +9 100 +10 110 +11 120 + +-- !select_topn -- +\N {"null":10,"varchar11":5} +0 {"varchar11":10} +1 {"varchar12":10} +2 {"varchar13":10} +3 {"varchar11":10} +4 {"varchar12":10} +5 {"varchar13":10} +6 {"varchar11":10} +7 {"varchar12":10} +8 {"varchar13":10} +9 {"varchar11":10} +10 {"varchar12":10} +11 {"varchar13":10} + +-- !select_topn_mv -- +\N {"null":10,"varchar11":5} +0 {"varchar11":10} +1 {"varchar12":10} +2 {"varchar13":10} +3 {"varchar11":10} +4 {"varchar12":10} +5 {"varchar13":10} +6 {"varchar11":10} +7 {"varchar12":10} +8 {"varchar13":10} +9 {"varchar11":10} +10 {"varchar12":10} +11 {"varchar13":10} + +-- !select_topn_array -- +\N ["null", "varchar11"] +0 ["varchar11"] +1 ["varchar12"] +2 ["varchar13"] +3 ["varchar11"] +4 ["varchar12"] +5 ["varchar13"] +6 ["varchar11"] +7 ["varchar12"] +8 ["varchar13"] +9 ["varchar11"] +10 ["varchar12"] +11 ["varchar13"] + +-- !select_topn_array_mv -- +\N ["null", "varchar11"] +0 ["varchar11"] +1 ["varchar12"] +2 ["varchar13"] +3 ["varchar11"] +4 ["varchar12"] +5 ["varchar13"] +6 ["varchar11"] +7 ["varchar12"] +8 ["varchar13"] +9 ["varchar11"] +10 ["varchar12"] +11 ["varchar13"] + +-- !select_topn_weighted -- +\N ["varchar11"] +0 ["varchar11"] +1 ["varchar12"] +2 ["varchar13"] +3 ["varchar11"] +4 ["varchar12"] +5 ["varchar13"] +6 ["varchar11"] +7 ["varchar12"] +8 ["varchar13"] +9 ["varchar11"] +10 ["varchar12"] +11 ["varchar13"] + +-- !select_topn_weighted_mv -- +\N ["varchar11"] +0 ["varchar11"] +1 ["varchar12"] +2 ["varchar13"] +3 ["varchar11"] +4 ["varchar12"] +5 ["varchar13"] +6 ["varchar11"] +7 ["varchar12"] +8 ["varchar13"] +9 ["varchar11"] +10 ["varchar12"] +11 ["varchar13"] + +-- !select_variance -- +\N 0.0 +0 0.0 +1 0.0 +2 0.0 +3 0.0 +4 0.0 +5 0.0 +6 0.0 +7 0.0 +8 0.0 +9 0.0 +10 0.0 +11 0.0 + +-- !select_variance_mv -- +\N 0.0 +0 0.0 +1 0.0 +2 0.0 +3 0.0 +4 0.0 +5 0.0 +6 0.0 +7 0.0 +8 0.0 +9 0.0 +10 0.0 +11 0.0 + +-- !select_var_pop -- +\N 0.0 +0 0.0 +1 0.0 +2 0.0 +3 0.0 +4 0.0 +5 0.0 +6 0.0 +7 0.0 +8 0.0 +9 0.0 +10 0.0 +11 0.0 + +-- !select_var_pop_mv -- +\N 0.0 +0 0.0 +1 0.0 +2 0.0 +3 0.0 +4 0.0 +5 0.0 +6 0.0 +7 0.0 +8 0.0 +9 0.0 +10 0.0 +11 0.0 + +-- !select_variance_samp -- +\N 0.0 +0 0.0 +1 0.0 +2 0.0 +3 0.0 +4 0.0 +5 0.0 +6 0.0 +7 0.0 +8 0.0 +9 0.0 +10 0.0 +11 0.0 + +-- !select_variance_samp_mv -- +\N 0.0 +0 0.0 +1 0.0 +2 0.0 +3 0.0 +4 0.0 +5 0.0 +6 0.0 +7 0.0 +8 0.0 +9 0.0 +10 0.0 +11 0.0 + +-- !select_var_samp -- +\N 0.0 +0 0.0 +1 0.0 +2 0.0 +3 0.0 +4 0.0 +5 0.0 +6 0.0 +7 0.0 +8 0.0 +9 0.0 +10 0.0 +11 0.0 + +-- !select_var_samp_mv -- +\N 0.0 +0 0.0 +1 0.0 +2 0.0 +3 0.0 +4 0.0 +5 0.0 +6 0.0 +7 0.0 +8 0.0 +9 0.0 +10 0.0 +11 0.0 + +-- !select_window_funnel -- +\N 1 +0 1 +1 0 +2 0 +3 0 +4 0 +5 0 +6 0 +7 0 +8 0 +9 0 +10 0 +11 0 + +-- !select_window_funnel_mv -- +\N 1 +0 1 +1 0 +2 0 +3 0 +4 0 +5 0 +6 0 +7 0 +8 0 +9 0 +10 0 +11 0 + +-- !select_retention -- +\N [0, 0] +0 [0, 0] +1 [0, 0] +2 [0, 0] +3 [0, 0] +4 [0, 0] +5 [0, 0] +6 [0, 0] +7 [0, 0] +8 [0, 0] +9 [0, 0] +10 [0, 0] +11 [0, 0] + +-- !select_retention_mv -- +\N [0, 0] +0 [0, 0] +1 [0, 0] +2 [0, 0] +3 [0, 0] +4 [0, 0] +5 [0, 0] +6 [0, 0] +7 [0, 0] +8 [0, 0] +9 [0, 0] +10 [0, 0] +11 [0, 0] + +-- !test -- +\N {} +1 {0:"string1"} +2 {1:"string2"} +3 {2:"string3"} +4 {3:"string1"} +5 {4:"string2"} +6 {5:"string3"} +7 {6:"string1"} +8 {7:"string2"} +9 {8:"string3"} +10 {9:"string1"} +11 {10:"string2"} +12 {11:"string3"} + diff --git a/regression-test/suites/nereids_syntax_p0/mv/aggregate/agg_sync_mv.groovy b/regression-test/suites/nereids_syntax_p0/mv/aggregate/agg_sync_mv.groovy index b0f384c472c848..60e3ec316da231 100644 --- a/regression-test/suites/nereids_syntax_p0/mv/aggregate/agg_sync_mv.groovy +++ b/regression-test/suites/nereids_syntax_p0/mv/aggregate/agg_sync_mv.groovy @@ -534,19 +534,6 @@ suite("agg_sync_mv") { sql "insert into agg_mv_test select * from agg_mv_test;" - sql "insert into agg_mv_test select * from agg_mv_test;" - sql "insert into agg_mv_test select * from agg_mv_test;" - sql "insert into agg_mv_test select * from agg_mv_test;" - sql "insert into agg_mv_test select * from agg_mv_test;" - sql "insert into agg_mv_test select * from agg_mv_test;" - sql "insert into agg_mv_test select * from agg_mv_test;" - sql "insert into agg_mv_test select * from agg_mv_test;" - sql "insert into agg_mv_test select * from agg_mv_test;" - sql "insert into agg_mv_test select * from agg_mv_test;" - sql "insert into agg_mv_test select * from agg_mv_test;" - sql "insert into agg_mv_test select * from agg_mv_test;" - sql "insert into agg_mv_test select * from agg_mv_test;" - sql "set parallel_pipeline_task_num=1" qt_test "select kbint, map_agg(id, kstr) from agg_mv_test group by kbint order by kbint;" } diff --git a/regression-test/suites/nereids_syntax_p1/mv/aggregate/agg_sync_mv.groovy b/regression-test/suites/nereids_syntax_p1/mv/aggregate/agg_sync_mv.groovy new file mode 100644 index 00000000000000..b0f384c472c848 --- /dev/null +++ b/regression-test/suites/nereids_syntax_p1/mv/aggregate/agg_sync_mv.groovy @@ -0,0 +1,552 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +suite("agg_sync_mv") { + sql """ use regression_test_nereids_syntax_p0_mv """ + sql """ SET enable_nereids_planner=true """ + sql """ SET enable_fallback_to_original_planner=false """ + sql """ analyze table agg_mv_test with sync""" + sql """ set enable_stats=false""" + + qt_select_any_value """select id, any_value(kint) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync1 on agg_mv_test;""" + createMV("""create materialized view mv_sync1 as select id, any_value(kint) from agg_mv_test group by id order by id;""") + explain { + sql("select id, any_value(kint) from agg_mv_test group by id order by id;") + contains "(mv_sync1)" + } + qt_select_any_value_mv """select id, any_value(kint) from agg_mv_test group by id order by id;""" + + // sum_foreach is not supported in old planner + // qt_select_sum_foreach """select id, sum_foreach(kaint) from agg_mv_test group by id order by id;""" + // sql """drop materialized view if exists mv_sync2 on agg_mv_test;""" + // createMV("""create materialized view mv_sync2 as select id, sum_foreach(kaint) from agg_mv_test group by id order by id;""") + // explain { + // sql("select id, sum_foreach(kaint) from agg_mv_test group by id order by id;") + // contains "(mv_sync2)" + // } + // qt_select_sum_foreach_mv """select id, sum_foreach(kaint) from agg_mv_test group by id order by id;""" + + qt_select_approx_count_distinct """select id, approx_count_distinct(kint) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync3 on agg_mv_test;""" + createMV("""create materialized view mv_sync3 as select id, approx_count_distinct(kint) from agg_mv_test group by id order by id;""") + explain { + sql("select id, approx_count_distinct(kint) from agg_mv_test group by id order by id;") + contains "(mv_sync3)" + } + qt_select_approx_count_distinct_mv """select id, approx_count_distinct(kint) from agg_mv_test group by id order by id;""" + + qt_select_collect_set """select id, collect_set(kint) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync4 on agg_mv_test;""" + createMV("""create materialized view mv_sync4 as select id, collect_set(kint) from agg_mv_test group by id order by id;""") + explain { + sql("select id, collect_set(kint) from agg_mv_test group by id order by id;") + contains "(mv_sync4)" + } + qt_select_collect_set_mv """select id, collect_set(kint) from agg_mv_test group by id order by id;""" + + qt_select_collect_list """select id, collect_list(kint) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync5 on agg_mv_test;""" + createMV("""create materialized view mv_sync5 as select id, collect_list(kint) from agg_mv_test group by id order by id;""") + explain { + sql("select id, collect_list(kint) from agg_mv_test group by id order by id;") + contains "(mv_sync5)" + } + qt_select_collect_list_mv """select id, collect_list(kint) from agg_mv_test group by id order by id;""" + + qt_select_corr """select id, corr(kint, kbint) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync6 on agg_mv_test;""" + createMV("""create materialized view mv_sync6 as select id, corr(kint, kbint) from agg_mv_test group by id order by id;""") + explain { + sql("select id, corr(kint, kbint) from agg_mv_test group by id order by id;") + contains "(mv_sync6)" + } + qt_select_corr_mv """select id, corr(kint, kbint) from agg_mv_test group by id order by id;""" + + qt_select_percentile_array """select id, percentile_array(kint, [0.5,0.55,0.805]) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync7 on agg_mv_test;""" + createMV("""create materialized view mv_sync7 as select id, percentile_array(kint, [0.5,0.55,0.805]) from agg_mv_test group by id order by id;""") + explain { + sql("select id, percentile_array(kint, [0.5,0.55,0.805]) from agg_mv_test group by id order by id;") + contains "(mv_sync7)" + } + qt_select_percentile_array_mv """select id, percentile_array(kint, [0.5,0.55,0.805]) from agg_mv_test group by id order by id;""" + + qt_select_quantile_union """select id, quantile_union(to_quantile_state(kbint, 2048)) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync8 on agg_mv_test;""" + createMV("""create materialized view mv_sync8 as select id, quantile_union(to_quantile_state(kbint, 2048)) from agg_mv_test group by id order by id;""") + explain { + sql("select id, quantile_union(to_quantile_state(kbint, 2048)) from agg_mv_test group by id order by id;") + contains "(mv_sync8)" + } + qt_select_quantile_union_mv """select id, quantile_union(to_quantile_state(kbint, 2048)) from agg_mv_test group by id order by id;""" + + qt_select_count_by_enum """select id, count_by_enum(kstr) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync9 on agg_mv_test;""" + createMV("""create materialized view mv_sync9 as select id, count_by_enum(kstr) from agg_mv_test group by id order by id;""") + explain { + sql("select id, count_by_enum(kstr) from agg_mv_test group by id order by id;") + contains "(mv_sync9)" + } + qt_select_count_by_enum_mv """select id, count_by_enum(kstr) from agg_mv_test group by id order by id;""" + + qt_select_avg_weighted """select id, avg_weighted(ktint, kdbl) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync10 on agg_mv_test;""" + createMV("""create materialized view mv_sync10 as select id, avg_weighted(ktint, kdbl) from agg_mv_test group by id order by id;""") + explain { + sql("select id, avg_weighted(ktint, kdbl) from agg_mv_test group by id order by id;") + contains "(mv_sync10)" + } + qt_select_avg_weighted_mv """select id, avg_weighted(ktint, kdbl) from agg_mv_test group by id order by id;""" + + qt_select_bitmap_intersect """select id, bitmap_intersect(bitmap_hash(kbint)) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync11 on agg_mv_test;""" + createMV("""create materialized view mv_sync11 as select id, bitmap_intersect(bitmap_hash(kbint)) from agg_mv_test group by id order by id;""") + explain { + sql("select id, bitmap_intersect(bitmap_hash(kbint)) from agg_mv_test group by id order by id;") + contains "(mv_sync11)" + } + qt_select_bitmap_intersect_mv """select id, bitmap_intersect(bitmap_hash(kbint)) from agg_mv_test group by id order by id;""" + + qt_select_bitmap_agg """select id, bitmap_agg(kint) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync12 on agg_mv_test;""" + createMV("""create materialized view mv_sync12 as select id, bitmap_agg(kint) from agg_mv_test group by id order by id;""") + explain { + sql("select id, bitmap_agg(kint) from agg_mv_test group by id order by id;") + contains "(mv_sync12)" + } + qt_select_bitmap_agg_mv """select id, bitmap_agg(kint) from agg_mv_test group by id order by id;""" + + qt_select_bitmap_union """select id, bitmap_union(bitmap_hash(kbint)) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync13 on agg_mv_test;""" + createMV("""create materialized view mv_sync13 as select id, bitmap_union(bitmap_hash(kbint)) from agg_mv_test group by id order by id;""") + explain { + sql("select id, bitmap_union(bitmap_hash(kbint)) from agg_mv_test group by id order by id;") + contains "(mv_sync13)" + } + qt_select_bitmap_union_mv """select id, bitmap_union(bitmap_hash(kbint)) from agg_mv_test group by id order by id;""" + + qt_select_bitmap_union_count """select id, bitmap_union_count(bitmap_hash(kbint)) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync14 on agg_mv_test;""" + createMV("""create materialized view mv_sync14 as select id, bitmap_union_count(bitmap_hash(kbint)) from agg_mv_test group by id order by id;""") + explain { + sql("select id, bitmap_union_count(bitmap_hash(kbint)) from agg_mv_test group by id order by id;") + contains "(mv_sync14)" + } + qt_select_bitmap_union_count_mv """select id, bitmap_union_count(bitmap_hash(kbint)) from agg_mv_test group by id order by id;""" + + qt_select_bitmap_union_int """select id, bitmap_union_int(kint) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync15 on agg_mv_test;""" + createMV("""create materialized view mv_sync15 as select id, bitmap_union_int(kint) from agg_mv_test group by id order by id;""") + explain { + sql("select id, bitmap_union_int(kint) from agg_mv_test group by id order by id;") + contains "(mv_sync15)" + } + qt_select_bitmap_union_int_mv """select id, bitmap_union_int(kint) from agg_mv_test group by id order by id;""" + + qt_select_group_array_intersect """select id, group_array_intersect(kaint) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync16 on agg_mv_test;""" + createMV("""create materialized view mv_sync16 as select id, group_array_intersect(kaint) from agg_mv_test group by id order by id;""") + explain { + sql("select id, group_array_intersect(kaint) from agg_mv_test group by id order by id;") + contains "(mv_sync16)" + } + qt_select_group_array_intersect_mv """select id, group_array_intersect(kaint) from agg_mv_test group by id order by id;""" + + qt_select_group_bit_and """select id, group_bit_and(kint) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync17 on agg_mv_test;""" + createMV("""create materialized view mv_sync17 as select id, group_bit_and(kint) from agg_mv_test group by id order by id;""") + explain { + sql("select id, group_bit_and(kint) from agg_mv_test group by id order by id;") + contains "(mv_sync17)" + } + qt_select_group_bit_and_mv """select id, group_bit_and(kint) from agg_mv_test group by id order by id;""" + + qt_select_group_bit_or """select id, group_bit_or(kint) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync18 on agg_mv_test;""" + createMV("""create materialized view mv_sync18 as select id, group_bit_or(kint) from agg_mv_test group by id order by id;""") + explain { + sql("select id, group_bit_or(kint) from agg_mv_test group by id order by id;") + contains "(mv_sync18)" + } + qt_select_group_bit_or_mv """select id, group_bit_or(kint) from agg_mv_test group by id order by id;""" + + qt_select_group_bit_xor """select id, group_bit_xor(kint) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync19 on agg_mv_test;""" + createMV("""create materialized view mv_sync19 as select id, group_bit_xor(kint) from agg_mv_test group by id order by id;""") + explain { + sql("select id, group_bit_xor(kint) from agg_mv_test group by id order by id;") + contains "(mv_sync19)" + } + qt_select_group_bit_xor_mv """select id, group_bit_xor(kint) from agg_mv_test group by id order by id;""" + + qt_select_group_bitmap_xor """select id, group_bitmap_xor(bitmap_hash(kbint)) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync20 on agg_mv_test;""" + createMV("""create materialized view mv_sync20 as select id, group_bitmap_xor(bitmap_hash(kbint)) from agg_mv_test group by id order by id;""") + explain { + sql("select id, group_bitmap_xor(bitmap_hash(kbint)) from agg_mv_test group by id order by id;") + contains "(mv_sync20)" + } + qt_select_group_bitmap_xor_mv """select id, group_bitmap_xor(bitmap_hash(kbint)) from agg_mv_test group by id order by id;""" + + qt_select_hll_union_agg """select id, hll_union_agg(hll_hash(kbint)) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync21 on agg_mv_test;""" + createMV("""create materialized view mv_sync21 as select id, hll_union_agg(hll_hash(kbint)) from agg_mv_test group by id order by id;""") + explain { + sql("select id, hll_union_agg(hll_hash(kbint)) from agg_mv_test group by id order by id;") + contains "(mv_sync21)" + } + qt_select_hll_union_agg_mv """select id, hll_union_agg(hll_hash(kbint)) from agg_mv_test group by id order by id;""" + + qt_select_hll_union """select id, hll_union(hll_hash(kbint)) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync22 on agg_mv_test;""" + createMV("""create materialized view mv_sync22 as select id, hll_union(hll_hash(kbint)) from agg_mv_test group by id order by id;""") + explain { + sql("select id, hll_union(hll_hash(kbint)) from agg_mv_test group by id order by id;") + contains "(mv_sync22)" + } + qt_select_hll_union_mv """select id, hll_union(hll_hash(kbint)) from agg_mv_test group by id order by id;""" + + qt_select_intersect_count """select id, intersect_count(bitmap_hash(kbint), kint, 3, 4) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync23 on agg_mv_test;""" + createMV("""create materialized view mv_sync23 as select id, intersect_count(bitmap_hash(kbint), kint, 3, 4) from agg_mv_test group by id order by id;""") + explain { + sql("select id, intersect_count(bitmap_hash(kbint), kint, 3, 4) from agg_mv_test group by id order by id;") + contains "(mv_sync23)" + } + qt_select_intersect_count_mv """select id, intersect_count(bitmap_hash(kbint), kint, 3, 4) from agg_mv_test group by id order by id;""" + + qt_select_group_concat """select id, group_concat(cast(abs(kint) as varchar)) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync24 on agg_mv_test;""" + createMV("""create materialized view mv_sync24 as select id, group_concat(cast(abs(kint) as varchar)) from agg_mv_test group by id order by id;""") + explain { + sql("select id, group_concat(cast(abs(kint) as varchar)) from agg_mv_test group by id order by id;") + contains "(mv_sync24)" + } + qt_select_group_concat_mv """select id, group_concat(cast(abs(kint) as varchar)) from agg_mv_test group by id order by id;""" + + qt_select_multi_distinct_group_concat """select id, multi_distinct_group_concat(cast(abs(kint) as varchar)) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync25 on agg_mv_test;""" + createMV("""create materialized view mv_sync25 as select id, multi_distinct_group_concat(cast(abs(kint) as varchar)) from agg_mv_test group by id order by id;""") + explain { + sql("select id, multi_distinct_group_concat(cast(abs(kint) as varchar)) from agg_mv_test group by id order by id;") + contains "(mv_sync25)" + } + qt_select_multi_distinct_group_concat_mv """select id, multi_distinct_group_concat(cast(abs(kint) as varchar)) from agg_mv_test group by id order by id;""" + + qt_select_multi_distinct_sum0 """select id, multi_distinct_sum0(kint) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync26 on agg_mv_test;""" + createMV("""create materialized view mv_sync26 as select id, multi_distinct_sum0(kint) from agg_mv_test group by id order by id;""") + explain { + sql("select id, multi_distinct_sum0(kint) from agg_mv_test group by id order by id;") + contains "(mv_sync26)" + } + qt_select_multi_distinct_sum0_mv """select id, multi_distinct_sum0(kint) from agg_mv_test group by id order by id;""" + + qt_select_multi_distinct_sum """select id, multi_distinct_sum(kint) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync27 on agg_mv_test;""" + createMV("""create materialized view mv_sync27 as select id, multi_distinct_sum(kint) from agg_mv_test group by id order by id;""") + explain { + sql("select id, multi_distinct_sum(kint) from agg_mv_test group by id order by id;") + contains "(mv_sync27)" + } + qt_select_multi_distinct_sum_mv """select id, multi_distinct_sum(kint) from agg_mv_test group by id order by id;""" + + + qt_select_histogram """select id, histogram(kint) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync28 on agg_mv_test;""" + createMV("""create materialized view mv_sync28 as select id, histogram(kint) from agg_mv_test group by id order by id;""") + explain { + sql("select id, histogram(kint) from agg_mv_test group by id order by id;") + contains "(mv_sync28)" + } + qt_select_histogram_mv """select id, histogram(kint) from agg_mv_test group by id order by id;""" + + qt_select_max_by """select id, max_by(kint, kint) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync29 on agg_mv_test;""" + createMV("""create materialized view mv_sync29 as select id, max_by(kint, kint) from agg_mv_test group by id order by id;""") + explain { + sql("select id, max_by(kint, kint) from agg_mv_test group by id order by id;") + contains "(mv_sync29)" + } + qt_select_max_by_mv """select id, max_by(kint, kint) from agg_mv_test group by id order by id;""" + + qt_select_min_by """select id, min_by(kint, kint) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync30 on agg_mv_test;""" + createMV("""create materialized view mv_sync30 as select id, min_by(kint, kint) from agg_mv_test group by id order by id;""") + explain { + sql("select id, min_by(kint, kint) from agg_mv_test group by id order by id;") + contains "(mv_sync30)" + } + qt_select_min_by_mv """select id, min_by(kint, kint) from agg_mv_test group by id order by id;""" + + qt_select_multi_distinct_count """select id, multi_distinct_count(kint) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync31 on agg_mv_test;""" + createMV("""create materialized view mv_sync31 as select id, multi_distinct_count(kint) from agg_mv_test group by id order by id;""") + explain { + sql("select id, multi_distinct_count(kint) from agg_mv_test group by id order by id;") + contains "(mv_sync31)" + } + qt_select_multi_distinct_count_mv """select id, multi_distinct_count(kint) from agg_mv_test group by id order by id;""" + + qt_select_ndv """select id, ndv(kint) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync32 on agg_mv_test;""" + createMV("""create materialized view mv_sync32 as select id, ndv(kint) from agg_mv_test group by id order by id;""") + explain { + sql("select id, ndv(kint) from agg_mv_test group by id order by id;") + contains "(mv_sync32)" + } + qt_select_ndv_mv """select id, ndv(kint) from agg_mv_test group by id order by id;""" + + qt_select_covar """select id, covar(kint, kint) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync33 on agg_mv_test;""" + createMV("""create materialized view mv_sync33 as select id, covar(kint, kint) from agg_mv_test group by id order by id;""") + explain { + sql("select id, covar(kint, kint) from agg_mv_test group by id order by id;") + contains "(mv_sync33)" + } + qt_select_covar_mv """select id, covar(kint, kint) from agg_mv_test group by id order by id;""" + + qt_select_covar_samp """select id, covar_samp(kint, kint) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync34 on agg_mv_test;""" + createMV("""create materialized view mv_sync34 as select id, covar_samp(kint, kint) from agg_mv_test group by id order by id;""") + explain { + sql("select id, covar_samp(kint, kint) from agg_mv_test group by id order by id;") + contains "(mv_sync34)" + } + qt_select_covar_samp_mv """select id, covar_samp(kint, kint) from agg_mv_test group by id order by id;""" + + qt_select_percentile """select id, percentile(kbint, 0.6) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync35 on agg_mv_test;""" + createMV("""create materialized view mv_sync35 as select id, percentile(kbint, 0.6) from agg_mv_test group by id order by id;""") + explain { + sql("select id, percentile(kbint, 0.6) from agg_mv_test group by id order by id;") + contains "(mv_sync35)" + } + qt_select_percentile_mv """select id, percentile(kbint, 0.6) from agg_mv_test group by id order by id;""" + + qt_select_percentile_approx """select id, percentile_approx(kbint, 0.6) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync36 on agg_mv_test;""" + createMV("""create materialized view mv_sync36 as select id, percentile_approx(kbint, 0.6) from agg_mv_test group by id order by id;""") + explain { + sql("select id, percentile_approx(kbint, 0.6) from agg_mv_test group by id order by id;") + contains "(mv_sync36)" + } + qt_select_percentile_approx_mv """select id, percentile_approx(kbint, 0.6) from agg_mv_test group by id order by id;""" + + // percentile_approx_weighted is not supported in old planner + // qt_select_percentile_approx_weighted """select id, percentile_approx_weighted(kint, kbint, 0.6) from agg_mv_test group by id order by id;""" + // sql """drop materialized view if exists mv_sync37 on agg_mv_test;""" + // createMV("""create materialized view mv_sync37 as select id, percentile_approx_weighted(kint, kbint, 0.6) from agg_mv_test group by id order by id;""") + // explain { + // sql("select id, percentile_approx_weighted(kint, kbint, 0.6) from agg_mv_test group by id order by id;") + // contains "(mv_sync37)" + // } + // qt_select_percentile_approx_weighted_mv """select id, percentile_approx_weighted(kint, kbint, 0.6) from agg_mv_test group by id order by id;""" + + qt_select_sequence_count """select id, sequence_count('(?1)(?2)', kdtv2, kint = 1, kint = 2) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync38 on agg_mv_test;""" + createMV("""create materialized view mv_sync38 as select id, sequence_count('(?1)(?2)', kdtv2, kint = 1, kint = 2) from agg_mv_test group by id order by id;""") + explain { + sql("select id, sequence_count('(?1)(?2)', kdtv2, kint = 1, kint = 2) from agg_mv_test group by id order by id;") + contains "(mv_sync38)" + } + qt_select_sequence_count_mv """select id, sequence_count('(?1)(?2)', kdtv2, kint = 1, kint = 2) from agg_mv_test group by id order by id;""" + + qt_select_sequence_match """select id, sequence_match('(?1)(?2)', kdtv2, kint = 1, kint = 2) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync39 on agg_mv_test;""" + createMV("""create materialized view mv_sync39 as select id, sequence_match('(?1)(?2)', kdtv2, kint = 1, kint = 2) from agg_mv_test group by id order by id;""") + explain { + sql("select id, sequence_match('(?1)(?2)', kdtv2, kint = 1, kint = 2) from agg_mv_test group by id order by id;") + contains "(mv_sync39)" + } + qt_select_sequence_match_mv """select id, sequence_match('(?1)(?2)', kdtv2, kint = 1, kint = 2) from agg_mv_test group by id order by id;""" + + qt_select_stddev """select id, stddev(kint) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync40 on agg_mv_test;""" + createMV("""create materialized view mv_sync40 as select id, stddev(kint) from agg_mv_test group by id order by id;""") + explain { + sql("select id, stddev(kint) from agg_mv_test group by id order by id;") + contains "(mv_sync40)" + } + qt_select_stddev_mv """select id, stddev(kint) from agg_mv_test group by id order by id;""" + + qt_select_stddev_pop """select id, stddev_pop(kint) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync41 on agg_mv_test;""" + createMV("""create materialized view mv_sync41 as select id, stddev_pop(kint) from agg_mv_test group by id order by id;""") + explain { + sql("select id, stddev_pop(kint) from agg_mv_test group by id order by id;") + contains "(mv_sync41)" + } + qt_select_stddev_pop_mv """select id, stddev_pop(kint) from agg_mv_test group by id order by id;""" + + qt_select_stddev_samp """select id, stddev_samp(kint) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync42 on agg_mv_test;""" + createMV("""create materialized view mv_sync42 as select id, stddev_samp(kint) from agg_mv_test group by id order by id;""") + explain { + sql("select id, stddev_samp(kint) from agg_mv_test group by id order by id;") + contains "(mv_sync42)" + } + qt_select_stddev_samp_mv """select id, stddev_samp(kint) from agg_mv_test group by id order by id;""" + + qt_select_sum0 """select id, sum0(kint) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync43 on agg_mv_test;""" + createMV("""create materialized view mv_sync43 as select id, sum0(kint) from agg_mv_test group by id order by id;""") + explain { + sql("select id, sum0(kint) from agg_mv_test group by id order by id;") + contains "(mv_sync43)" + } + qt_select_sum0_mv """select id, sum0(kint) from agg_mv_test group by id order by id;""" + + qt_select_topn """select id, topn(kvchrs1, 3) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync44 on agg_mv_test;""" + createMV("""create materialized view mv_sync44 as select id, topn(kvchrs1, 3) from agg_mv_test group by id order by id;""") + explain { + sql("select id, topn(kvchrs1, 3) from agg_mv_test group by id order by id;") + contains "(mv_sync44)" + } + qt_select_topn_mv """select id, topn(kvchrs1, 3) from agg_mv_test group by id order by id;""" + + qt_select_topn_array """select id, topn_array(kvchrs1, 3) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync45 on agg_mv_test;""" + createMV("""create materialized view mv_sync45 as select id, topn_array(kvchrs1, 3) from agg_mv_test group by id order by id;""") + explain { + sql("select id, topn_array(kvchrs1, 3) from agg_mv_test group by id order by id;") + contains "(mv_sync45)" + } + qt_select_topn_array_mv """select id, topn_array(kvchrs1, 3) from agg_mv_test group by id order by id;""" + + qt_select_topn_weighted """select id, topn_weighted(kvchrs1, ktint, 3) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync46 on agg_mv_test;""" + createMV("""create materialized view mv_sync46 as select id, topn_weighted(kvchrs1, ktint, 3) from agg_mv_test group by id order by id;""") + explain { + sql("select id, topn_weighted(kvchrs1, ktint, 3) from agg_mv_test group by id order by id;") + contains "(mv_sync46)" + } + qt_select_topn_weighted_mv """select id, topn_weighted(kvchrs1, ktint, 3) from agg_mv_test group by id order by id;""" + + qt_select_variance """select id, variance(kint) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync47 on agg_mv_test;""" + createMV("""create materialized view mv_sync47 as select id, variance(kint) from agg_mv_test group by id order by id;""") + explain { + sql("select id, variance(kint) from agg_mv_test group by id order by id;") + contains "(mv_sync47)" + } + qt_select_variance_mv """select id, variance(kint) from agg_mv_test group by id order by id;""" + + qt_select_var_pop """select id, var_pop(kint) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync48 on agg_mv_test;""" + createMV("""create materialized view mv_sync48 as select id, var_pop(kint) from agg_mv_test group by id order by id;""") + explain { + sql("select id, var_pop(kint) from agg_mv_test group by id order by id;") + contains "(mv_sync47)" + } + qt_select_var_pop_mv """select id, var_pop(kint) from agg_mv_test group by id order by id;""" + + qt_select_variance_samp """select id, variance_samp(kint) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync49 on agg_mv_test;""" + createMV("""create materialized view mv_sync49 as select id, variance_samp(kint) from agg_mv_test group by id order by id;""") + explain { + sql("select id, variance_samp(kint) from agg_mv_test group by id order by id;") + contains "(mv_sync49)" + } + qt_select_variance_samp_mv """select id, variance_samp(kint) from agg_mv_test group by id order by id;""" + + qt_select_var_samp """select id, var_samp(kint) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync50 on agg_mv_test;""" + createMV("""create materialized view mv_sync50 as select id, var_samp(kint) from agg_mv_test group by id order by id;""") + explain { + sql("select id, var_samp(kint) from agg_mv_test group by id order by id;") + contains "(mv_sync50)" + } + qt_select_var_samp_mv """select id, var_samp(kint) from agg_mv_test group by id order by id;""" + + qt_select_window_funnel """select id, window_funnel(3600 * 3, 'default', kdtm, kint = 1, kint = 2) from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync51 on agg_mv_test;""" + createMV("""create materialized view mv_sync51 as select id, window_funnel(3600 * 3, 'default', kdtm, kint = 1, kint = 2) from agg_mv_test group by id order by id;""") + explain { + sql("select id, window_funnel(3600 * 3, 'default', kdtm, kint = 1, kint = 2) from agg_mv_test group by id order by id;") + contains "(mv_sync51)" + } + qt_select_window_funnel_mv """select id, window_funnel(3600 * 3, 'default', kdtm, kint = 1, kint = 2) from agg_mv_test group by id order by id;""" + + // map_agg is not supported yet + // qt_select_map_agg """select id, map_agg(kint, kstr) from agg_mv_test group by id order by id;""" + // sql """drop materialized view if exists mv_sync52 on agg_mv_test;""" + // createMV("""create materialized view mv_sync52 as select id, map_agg(kint, kstr) from agg_mv_test group by id order by id;""") + // explain { + // sql("select id, map_agg(kint, kstr) from agg_mv_test group by id order by id;") + // contains "(mv_sync52)" + // } + // qt_select_map_agg_mv """select id, map_agg(kint, kstr) from agg_mv_test group by id order by id;""" + + // array_agg is not supported yet + // qt_select_array_agg """select id, array_agg(kstr) from agg_mv_test group by id order by id;""" + // sql """drop materialized view if exists mv_sync53 on agg_mv_test;""" + // createMV("""create materialized view mv_sync53 as select id, array_agg(kstr) from agg_mv_test group by id order by id;""") + // explain { + // sql("select id, array_agg(kstr) from agg_mv_test group by id order by id;") + // contains "(mv_sync53)" + // } + // qt_select_array_agg_mv """select id, array_agg(kstr) from agg_mv_test group by id order by id;""" + + qt_select_retention """select id, retention(kdtm = '2012-03-11', kdtm = '2012-03-12') from agg_mv_test group by id order by id;""" + sql """drop materialized view if exists mv_sync54 on agg_mv_test;""" + createMV("""create materialized view mv_sync54 as select id, retention(kdtm = '2012-03-11', kdtm = '2012-03-12') from agg_mv_test group by id order by id;""") + explain { + sql("select id, retention(kdtm = '2012-03-11', kdtm = '2012-03-12') from agg_mv_test group by id order by id;") + contains "(mv_sync54)" + } + qt_select_retention_mv """select id, retention(kdtm = '2012-03-11', kdtm = '2012-03-12') from agg_mv_test group by id order by id;""" + + + streamLoad { + table "agg_mv_test" + db "regression_test_nereids_syntax_p0_mv" + set 'column_separator', ';' + set 'columns', ''' + id, kbool, ktint, ksint, kint, kbint, klint, kfloat, kdbl, kdcmls1, kdcmls2, kdcmls3, + kdcmlv3s1, kdcmlv3s2, kdcmlv3s3, kchrs1, kchrs2, kchrs3, kvchrs1, kvchrs2, kvchrs3, kstr, + kdt, kdtv2, kdtm, kdtmv2s1, kdtmv2s2, kdtmv2s3, kabool, katint, kasint, kaint, + kabint, kalint, kafloat, kadbl, kadt, kadtm, kadtv2, kadtmv2, kachr, kavchr, kastr, kadcml, + st_point_str, st_point_vc, x_lng, x_lat, y_lng, y_lat, z_lng, z_lat, radius, linestring_wkt, polygon_wkt, + km_bool_tint, km_tint_tint, km_sint_tint, km_int_tint, km_bint_tint, km_lint_tint, km_float_tint, + km_dbl_tint, km_dcml_tint, km_chr_tint, km_vchr_tint, km_str_tint, km_date_tint, km_dtm_tint, + km_tint_bool, km_int_int, km_tint_sint, km_tint_int, km_tint_bint, km_tint_lint, km_tint_float, + km_tint_dbl, km_tint_dcml, km_tint_chr, km_tint_vchr, km_tint_str, km_tint_date, km_tint_dtm, kjson, kstruct + ''' + file "../agg_mv_test.dat" + } + + + sql "insert into agg_mv_test select * from agg_mv_test;" + sql "insert into agg_mv_test select * from agg_mv_test;" + sql "insert into agg_mv_test select * from agg_mv_test;" + sql "insert into agg_mv_test select * from agg_mv_test;" + sql "insert into agg_mv_test select * from agg_mv_test;" + sql "insert into agg_mv_test select * from agg_mv_test;" + sql "insert into agg_mv_test select * from agg_mv_test;" + sql "insert into agg_mv_test select * from agg_mv_test;" + sql "insert into agg_mv_test select * from agg_mv_test;" + sql "insert into agg_mv_test select * from agg_mv_test;" + sql "insert into agg_mv_test select * from agg_mv_test;" + sql "insert into agg_mv_test select * from agg_mv_test;" + sql "insert into agg_mv_test select * from agg_mv_test;" + + sql "set parallel_pipeline_task_num=1" + qt_test "select kbint, map_agg(id, kstr) from agg_mv_test group by kbint order by kbint;" +} diff --git a/regression-test/suites/nereids_syntax_p1/mv/load.groovy b/regression-test/suites/nereids_syntax_p1/mv/load.groovy new file mode 100644 index 00000000000000..23b625a127f90d --- /dev/null +++ b/regression-test/suites/nereids_syntax_p1/mv/load.groovy @@ -0,0 +1,129 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +suite("load") { + sql "drop table if exists agg_mv_test" + sql """ + CREATE TABLE IF NOT EXISTS `agg_mv_test` ( + `id` int null, + `kbool` boolean null, + `ktint` tinyint(4) null, + `ksint` smallint(6) null, + `kint` int(11) null, + `kbint` bigint(20) null, + `klint` largeint(40) null, + `kfloat` float null, + `kdbl` double null, + `kdcmls1` decimal(9, 3) null, + `kdcmls2` decimal(15, 5) null, + `kdcmls3` decimal(27, 9) null, + `kdcmlv3s1` decimalv3(9, 3) null, + `kdcmlv3s2` decimalv3(15, 5) null, + `kdcmlv3s3` decimalv3(27, 9) null, + `kchrs1` char(10) null, + `kchrs2` char(20) null, + `kchrs3` char(50) null, + `kvchrs1` varchar(10) null, + `kvchrs2` varchar(20) null, + `kvchrs3` varchar(50) null, + `kstr` string null, + `kdt` date null, + `kdtv2` datev2 null, + `kdtm` datetime null, + `kdtmv2s1` datetimev2(0) null, + `kdtmv2s2` datetimev2(4) null, + `kdtmv2s3` datetimev2(6) null, + `kabool` array null, + `katint` array null, + `kasint` array null, + `kaint` array null, + `kabint` array null, + `kalint` array null, + `kafloat` array null, + `kadbl` array null, + `kadt` array null, + `kadtm` array null, + `kadtv2` array null, + `kadtmv2` array null, + `kachr` array null, + `kavchr` array null, + `kastr` array null, + `kadcml` array null, + `st_point_str` string null, + `st_point_vc` varchar(50) null, + `x_lng` double null, + `x_lat` double null, + `y_lng` double null, + `y_lat` double null, + `z_lng` double null, + `z_lat` double null, + `radius` double null, + `linestring_wkt` varchar(50) null, + `polygon_wkt` varchar(50) null, + `km_bool_tint` map null, + `km_tint_tint` map null, + `km_sint_tint` map null, + `km_int_tint` map null, + `km_bint_tint` map null, + `km_lint_tint` map null, + `km_float_tint` map null, + `km_dbl_tint` map null, + `km_dcml_tint` map null, + `km_chr_tint` map null, + `km_vchr_tint` map null, + `km_str_tint` map null, + `km_date_tint` map null, + `km_dtm_tint` map null, + `km_tint_bool` map null, + `km_int_int` map null, + `km_tint_sint` map null, + `km_tint_int` map null, + `km_tint_bint` map null, + `km_tint_lint` map null, + `km_tint_float` map null, + `km_tint_dbl` map null, + `km_tint_dcml` map null, + `km_tint_chr` map null, + `km_tint_vchr` map null, + `km_tint_str` map null, + `km_tint_date` map null, + `km_tint_dtm` map null, + `kjson` JSON null, + `kstruct` STRUCT null + ) engine=olap + DISTRIBUTED BY HASH(`id`) BUCKETS 4 + properties("replication_num" = "1") + """ + + streamLoad { + table "agg_mv_test" + db "regression_test_nereids_syntax_p0_mv" + set 'column_separator', ';' + set 'columns', ''' + id, kbool, ktint, ksint, kint, kbint, klint, kfloat, kdbl, kdcmls1, kdcmls2, kdcmls3, + kdcmlv3s1, kdcmlv3s2, kdcmlv3s3, kchrs1, kchrs2, kchrs3, kvchrs1, kvchrs2, kvchrs3, kstr, + kdt, kdtv2, kdtm, kdtmv2s1, kdtmv2s2, kdtmv2s3, kabool, katint, kasint, kaint, + kabint, kalint, kafloat, kadbl, kadt, kadtm, kadtv2, kadtmv2, kachr, kavchr, kastr, kadcml, + st_point_str, st_point_vc, x_lng, x_lat, y_lng, y_lat, z_lng, z_lat, radius, linestring_wkt, polygon_wkt, + km_bool_tint, km_tint_tint, km_sint_tint, km_int_tint, km_bint_tint, km_lint_tint, km_float_tint, + km_dbl_tint, km_dcml_tint, km_chr_tint, km_vchr_tint, km_str_tint, km_date_tint, km_dtm_tint, + km_tint_bool, km_int_int, km_tint_sint, km_tint_int, km_tint_bint, km_tint_lint, km_tint_float, + km_tint_dbl, km_tint_dcml, km_tint_chr, km_tint_vchr, km_tint_str, km_tint_date, km_tint_dtm, kjson, kstruct + ''' + file "agg_mv_test.dat" + } +}