11script : |
22 echo === debug
3- super compile -C -O 'from file | debug a | values b'
3+ super compile -C -O 'from /dev/null | debug a | values b'
44 echo === distinct
5- super compile -C -O 'from file | distinct a | values b'
5+ super compile -C -O 'from /dev/null | distinct a | values b'
66 echo === fork into hash join
7- super compile -C -O 'fork ( from file1 ) ( from file2 ) | join on right.a=left.b | values left.c,right.d'
7+ super compile -C -O 'fork ( from /dev/null ) ( from /dev/zero ) | join on right.a=left.b | values left.c,right.d'
88 echo === fork into nested loop join
9- super compile -C -O 'fork ( from file1 ) ( from file2 ) | join on right.a>left.b | values left.c,right.d'
9+ super compile -C -O 'fork ( from /dev/null ) ( from /dev/zero ) | join on right.a>left.b | values left.c,right.d'
1010 echo === hash join
11- super compile -C -O "from file1 | join (from file2 ) on left.a=right.b | values left.c,right.d"
11+ super compile -C -O "from /dev/null | join (from /dev/zero ) on left.a=right.b | values left.c,right.d"
1212 echo === nested loop join
13- super compile -C -O "from file1 | join (from file2 ) on left.a>right.b | values left.c,right.d"
13+ super compile -C -O "from /dev/null | join (from /dev/zero ) on left.a>right.b | values left.c,right.d"
1414 echo === switch into hash join
15- super compile -C -O 'from file | switch a case b ( put x:=c ) case d ( put x:=e ) | join on left.f=right.g | values left.h,right.i'
15+ super compile -C -O 'from /dev/null | switch a case b ( put x:=c ) case d ( put x:=e ) | join on left.f=right.g | values left.h,right.i'
1616 echo === switch into nested loop join
17- super compile -C -O 'from file | switch a case b ( put x:=c ) case d ( put x:=e ) | join on left.f>right.g | values left.h,right.i'
17+ super compile -C -O 'from /dev/null | switch a case b ( put x:=c ) case d ( put x:=e ) | join on left.f>right.g | values left.h,right.i'
1818 echo === where
19- super compile -C -O "from file | a==1 or e==2 | values c, b, d"
19+ super compile -C -O "from /dev/null | a==1 or e==2 | values c, b, d"
2020 echo ===
2121 export SUPER_DB=test
2222 super db init -q
@@ -37,7 +37,7 @@ outputs:
3737 - name : stdout
3838 data : |
3939 === debug
40- file file fields a,b
40+ file /dev/null fields a,b
4141 | mirror
4242 (
4343 values a
@@ -48,56 +48,56 @@ outputs:
4848 | output main
4949 )
5050 === distinct
51- file file unordered fields a,b
51+ file /dev/null unordered fields a,b
5252 | distinct a
5353 | values b
5454 | output main
5555 === fork into hash join
5656 fork
5757 (
58- file file1 unordered fields b,c
58+ file /dev/null unordered fields b,c
5959 )
6060 (
61- file file2 unordered fields a,d
61+ file /dev/zero unordered fields a,d
6262 )
6363 | inner hashjoin as {left,right} on b==a
6464 | values left.c, right.d
6565 | output main
6666 === fork into nested loop join
6767 fork
6868 (
69- file file1 unordered fields b,c
69+ file /dev/null unordered fields b,c
7070 )
7171 (
72- file file2 unordered fields a,d
72+ file /dev/zero unordered fields a,d
7373 )
7474 | inner join as {left,right} on right.a>left.b
7575 | values left.c, right.d
7676 | output main
7777 === hash join
7878 fork
7979 (
80- file file1 unordered fields a,c
80+ file /dev/null unordered fields a,c
8181 )
8282 (
83- file file2 unordered fields b,d
83+ file /dev/zero unordered fields b,d
8484 )
8585 | inner hashjoin as {left,right} on a==b
8686 | values left.c, right.d
8787 | output main
8888 === nested loop join
8989 fork
9090 (
91- file file1 unordered fields a,c
91+ file /dev/null unordered fields a,c
9292 )
9393 (
94- file file2 unordered fields b,d
94+ file /dev/zero unordered fields b,d
9595 )
9696 | inner join as {left,right} on left.a>right.b
9797 | values left.c, right.d
9898 | output main
9999 === switch into hash join
100- file file unordered fields a,b,c,d,e,f,g,h,i
100+ file /dev/null unordered fields a,b,c,d,e,f,g,h,i
101101 | switch a
102102 case b (
103103 put x:=c
@@ -109,7 +109,7 @@ outputs:
109109 | values left.h, right.i
110110 | output main
111111 === switch into nested loop join
112- file file unordered fields a,b,c,d,e,f,g,h,i
112+ file /dev/null unordered fields a,b,c,d,e,f,g,h,i
113113 | switch a
114114 case b (
115115 put x:=c
@@ -121,7 +121,7 @@ outputs:
121121 | values left.h, right.i
122122 | output main
123123 === where
124- file file fields a,b,c,d,e filter (a==1 or e==2)
124+ file /dev/null fields a,b,c,d,e filter (a==1 or e==2)
125125 | values c, b, d
126126 | output main
127127 ===
0 commit comments