TDengine/tests/army/query/joinConst/others.csv
Pan Wei 0cb0e109a7
enh: add more cases for constant join (#30225)
* fix: add more cases and fix issues

* enh: add more test cases

* enh: add more test cases

* fix: memory leak issue

* enh: add view cases and fix order by issue

* enh: add document description
2025-03-19 16:50:44 +08:00

110 KiB

1taos> use test;
2Database changed.
3taos> select * from a1 a join (select today + 1d + 2s as ts, f, g, 'a' from b1) b on a.ts = b.ts;
4 ts | f | g | ts | f | g | 'a' |
5==================================================================================================================
6 __tomorrow__ 00:00:02.000 | 104 | 1014 | __tomorrow__ 00:00:02.000 | 301 | 3011 | a |
7 __tomorrow__ 00:00:02.000 | 104 | 1014 | __tomorrow__ 00:00:02.000 | 302 | 3012 | a |
8 __tomorrow__ 00:00:02.000 | 104 | 1014 | __tomorrow__ 00:00:02.000 | 303 | 3013 | a |
9 __tomorrow__ 00:00:02.000 | 104 | 1014 | __tomorrow__ 00:00:02.000 | 304 | 3014 | a |
10taos> select * from a1 a join (select timestamp '__today__ 00:00:00.000' + 1d + 2s as ts, f, g, 'a' from b1) b on a.ts = b.ts;
11 ts | f | g | ts | f | g | 'a' |
12==================================================================================================================
13 __tomorrow__ 00:00:02.000 | 104 | 1014 | __tomorrow__ 00:00:02.000 | 301 | 3011 | a |
14 __tomorrow__ 00:00:02.000 | 104 | 1014 | __tomorrow__ 00:00:02.000 | 302 | 3012 | a |
15 __tomorrow__ 00:00:02.000 | 104 | 1014 | __tomorrow__ 00:00:02.000 | 303 | 3013 | a |
16 __tomorrow__ 00:00:02.000 | 104 | 1014 | __tomorrow__ 00:00:02.000 | 304 | 3014 | a |
17taos> select * from a1 a join (select timestamp '__today__ 00:00:00.000' + 1d + 2s as ts, f, g, 'a' from b1) b on a.ts = timetruncate(b.ts, 1d);
18 ts | f | g | ts | f | g | 'a' |
19==================================================================================================================
20 __tomorrow__ 00:00:00.000 | 103 | 1013 | __tomorrow__ 00:00:02.000 | 301 | 3011 | a |
21 __tomorrow__ 00:00:00.000 | 103 | 1013 | __tomorrow__ 00:00:02.000 | 302 | 3012 | a |
22 __tomorrow__ 00:00:00.000 | 103 | 1013 | __tomorrow__ 00:00:02.000 | 303 | 3013 | a |
23 __tomorrow__ 00:00:00.000 | 103 | 1013 | __tomorrow__ 00:00:02.000 | 304 | 3014 | a |
24taos> select * from a1 a join (select timestamp '__today__ 00:00:00.000' + 1d + 2s as ts, f, g, 'a' from b1) b on a.ts = timetruncate(b.ts + 1s, 1d);
25 ts | f | g | ts | f | g | 'a' |
26==================================================================================================================
27 __tomorrow__ 00:00:00.000 | 103 | 1013 | __tomorrow__ 00:00:02.000 | 301 | 3011 | a |
28 __tomorrow__ 00:00:00.000 | 103 | 1013 | __tomorrow__ 00:00:02.000 | 302 | 3012 | a |
29 __tomorrow__ 00:00:00.000 | 103 | 1013 | __tomorrow__ 00:00:02.000 | 303 | 3013 | a |
30 __tomorrow__ 00:00:00.000 | 103 | 1013 | __tomorrow__ 00:00:02.000 | 304 | 3014 | a |
31taos> select * from (select ts + 2s as ts,f from a1) a join (select timestamp '__today__ 00:00:00.000' + 1d + 2s as ts, f, g, 'a' from b1) b on a.ts = b.ts;
32 ts | f | ts | f | g | 'a' |
33====================================================================================================
34 __tomorrow__ 00:00:02.000 | 103 | __tomorrow__ 00:00:02.000 | 301 | 3011 | a |
35 __tomorrow__ 00:00:02.000 | 103 | __tomorrow__ 00:00:02.000 | 302 | 3012 | a |
36 __tomorrow__ 00:00:02.000 | 103 | __tomorrow__ 00:00:02.000 | 303 | 3013 | a |
37 __tomorrow__ 00:00:02.000 | 103 | __tomorrow__ 00:00:02.000 | 304 | 3014 | a |
38taos> select * from a1 a join (select case when 1 > 0 then timestamp '__today__ 00:00:00.000' else timestamp '__tomorrow__ 00:00:00.000' end as ts, f, g, 'a' from b1) b on a.ts = b.ts;
39 ts | f | g | ts | f | g | 'a' |
40==================================================================================================================
41 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | 301 | 3011 | a |
42 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | 302 | 3012 | a |
43 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | 303 | 3013 | a |
44 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | 304 | 3014 | a |
45taos> select * from a1 a join (select timestamp '__today__ 00:00:00.000' + 1s as ts, f, g, 'a' from b1) b on a.ts = b.ts + 1d + 1s;
46 ts | f | g | ts | f | g | 'a' |
47==================================================================================================================
48 __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:01.000 | 301 | 3011 | a |
49 __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:01.000 | 302 | 3012 | a |
50 __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:01.000 | 303 | 3013 | a |
51 __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:01.000 | 304 | 3014 | a |
52taos> select * from a1 a join (select timestamp '__today__ 00:00:00.000' + 1s as ts, f, g, 'a' from b1) b on a.ts = timetruncate(b.ts + 1d + 1s, 1d) + 2s;
53 ts | f | g | ts | f | g | 'a' |
54==================================================================================================================
55 __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:01.000 | 301 | 3011 | a |
56 __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:01.000 | 302 | 3012 | a |
57 __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:01.000 | 303 | 3013 | a |
58 __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:01.000 | 304 | 3014 | a |
59taos> select * from a1 a, (select today + 1d + 2s as ts, f, g, 'a' from b1) b where a.ts = b.ts;
60 ts | f | g | ts | f | g | 'a' |
61==================================================================================================================
62 __tomorrow__ 00:00:02.000 | 104 | 1014 | __tomorrow__ 00:00:02.000 | 301 | 3011 | a |
63 __tomorrow__ 00:00:02.000 | 104 | 1014 | __tomorrow__ 00:00:02.000 | 302 | 3012 | a |
64 __tomorrow__ 00:00:02.000 | 104 | 1014 | __tomorrow__ 00:00:02.000 | 303 | 3013 | a |
65 __tomorrow__ 00:00:02.000 | 104 | 1014 | __tomorrow__ 00:00:02.000 | 304 | 3014 | a |
66taos> select * from a1 a, (select timestamp '__today__ 00:00:00.000' + 1d + 2s as ts, f, g, 'a' from b1) b where a.ts = b.ts;
67 ts | f | g | ts | f | g | 'a' |
68==================================================================================================================
69 __tomorrow__ 00:00:02.000 | 104 | 1014 | __tomorrow__ 00:00:02.000 | 301 | 3011 | a |
70 __tomorrow__ 00:00:02.000 | 104 | 1014 | __tomorrow__ 00:00:02.000 | 302 | 3012 | a |
71 __tomorrow__ 00:00:02.000 | 104 | 1014 | __tomorrow__ 00:00:02.000 | 303 | 3013 | a |
72 __tomorrow__ 00:00:02.000 | 104 | 1014 | __tomorrow__ 00:00:02.000 | 304 | 3014 | a |
73taos> select * from a1 a, (select timestamp '__today__ 00:00:00.000' + 1d + 2s as ts, f, g, 'a' from b1) b where a.ts = timetruncate(b.ts, 1d);
74 ts | f | g | ts | f | g | 'a' |
75==================================================================================================================
76 __tomorrow__ 00:00:00.000 | 103 | 1013 | __tomorrow__ 00:00:02.000 | 301 | 3011 | a |
77 __tomorrow__ 00:00:00.000 | 103 | 1013 | __tomorrow__ 00:00:02.000 | 302 | 3012 | a |
78 __tomorrow__ 00:00:00.000 | 103 | 1013 | __tomorrow__ 00:00:02.000 | 303 | 3013 | a |
79 __tomorrow__ 00:00:00.000 | 103 | 1013 | __tomorrow__ 00:00:02.000 | 304 | 3014 | a |
80taos> select * from a1 a, (select timestamp '__today__ 00:00:00.000' + 1d + 2s as ts, f, g, 'a' from b1) b where a.ts = timetruncate(b.ts + 1s, 1d);
81 ts | f | g | ts | f | g | 'a' |
82==================================================================================================================
83 __tomorrow__ 00:00:00.000 | 103 | 1013 | __tomorrow__ 00:00:02.000 | 301 | 3011 | a |
84 __tomorrow__ 00:00:00.000 | 103 | 1013 | __tomorrow__ 00:00:02.000 | 302 | 3012 | a |
85 __tomorrow__ 00:00:00.000 | 103 | 1013 | __tomorrow__ 00:00:02.000 | 303 | 3013 | a |
86 __tomorrow__ 00:00:00.000 | 103 | 1013 | __tomorrow__ 00:00:02.000 | 304 | 3014 | a |
87taos> select * from (select ts + 2s as ts,f from a1) a, (select timestamp '__today__ 00:00:00.000' + 1d + 2s as ts, f, g, 'a' from b1) b where a.ts = b.ts;
88 ts | f | ts | f | g | 'a' |
89====================================================================================================
90 __tomorrow__ 00:00:02.000 | 103 | __tomorrow__ 00:00:02.000 | 301 | 3011 | a |
91 __tomorrow__ 00:00:02.000 | 103 | __tomorrow__ 00:00:02.000 | 302 | 3012 | a |
92 __tomorrow__ 00:00:02.000 | 103 | __tomorrow__ 00:00:02.000 | 303 | 3013 | a |
93 __tomorrow__ 00:00:02.000 | 103 | __tomorrow__ 00:00:02.000 | 304 | 3014 | a |
94taos> select * from a1 a, (select case when 1 > 0 then timestamp '__today__ 00:00:00.000' else timestamp '__tomorrow__ 00:00:00.000' end as ts, f, g, 'a' from b1) b where a.ts = b.ts;
95 ts | f | g | ts | f | g | 'a' |
96==================================================================================================================
97 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | 301 | 3011 | a |
98 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | 302 | 3012 | a |
99 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | 303 | 3013 | a |
100 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | 304 | 3014 | a |
101taos> select * from a1 a, (select timestamp '__today__ 00:00:00.000' + 1s as ts, f, g, 'a' from b1) b where a.ts = b.ts + 1d + 1s;
102 ts | f | g | ts | f | g | 'a' |
103==================================================================================================================
104 __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:01.000 | 301 | 3011 | a |
105 __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:01.000 | 302 | 3012 | a |
106 __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:01.000 | 303 | 3013 | a |
107 __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:01.000 | 304 | 3014 | a |
108taos> select * from a1 a, (select timestamp '__today__ 00:00:00.000' + 1s as ts, f, g, 'a' from b1) b where a.ts = timetruncate(b.ts + 1d + 1s, 1d) + 2s;
109 ts | f | g | ts | f | g | 'a' |
110==================================================================================================================
111 __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:01.000 | 301 | 3011 | a |
112 __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:01.000 | 302 | 3012 | a |
113 __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:01.000 | 303 | 3013 | a |
114 __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:01.000 | 304 | 3014 | a |
115taos> select * from a1 a, (select today as ts, f, g, 'a' from b1) b where a.ts = b.ts order by b.ts, b.f desc;
116 ts | f | g | ts | f | g | 'a' |
117==================================================================================================================
118 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | 304 | 3014 | a |
119 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | 303 | 3013 | a |
120 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | 302 | 3012 | a |
121 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | 301 | 3011 | a |
122taos> select count(*) from a1 a, (select today as ts, f, g, 'a' from b1) b where a.ts = b.ts group by b.ts order by b.ts;
123 count(*) |
124========================
125 4 |
126taos> select b.ts, count(*) from a1 a left join (select today as ts, f, g, 'a' from b1) b on a.ts = b.ts group by b.ts order by b.ts;
127 ts | count(*) |
128==================================================
129 NULL | 3 |
130 __today__ 00:00:00.000 | 4 |
131taos> select * from (select * from a1 order by ts desc) a join (select today as ts1, * from b1 order by ts1 desc) b on a.ts = b.ts1;
132 ts | f | g | ts1 | ts | f | g |
133======================================================================================================================================
134 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
135 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
136 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
137 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
138taos> /*table+subq*/
139taos> select * from a1 a join (select * from b1 order by ts) b on a.ts = b.ts;
140 ts | f | g | ts | f | g |
141============================================================================================================
142 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | 301 | 3011 |
143 __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:01.000 | 302 | 3012 |
144 __tomorrow__ 00:00:00.000 | 103 | 1013 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
145 __tomorrow__ 00:00:02.000 | 104 | 1014 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
146taos> select * from a1 a join (select * from b1 order by ts desc) b on a.ts = b.ts;
147 ts | f | g | ts | f | g |
148============================================================================================================
149 __tomorrow__ 00:00:02.000 | 104 | 1014 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
150 __tomorrow__ 00:00:00.000 | 103 | 1013 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
151 __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:01.000 | 302 | 3012 |
152 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | 301 | 3011 |
153taos> /*table+const subq*/
154taos> select * from a1 a join (select today() as ts1, * from b1 order by ts) b on a.ts = b.ts;
155 ts | f | g | ts1 | ts | f | g |
156======================================================================================================================================
157 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
158 __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
159 __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
160 __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
161taos> select * from a1 a join (select today() as ts1, * from b1 order by ts desc) b on a.ts = b.ts;
162 ts | f | g | ts1 | ts | f | g |
163======================================================================================================================================
164 __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
165 __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
166 __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
167 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
168taos> select * from a1 a join (select today() as ts1, * from b1 order by ts) b on a.ts = b.ts1;
169 ts | f | g | ts1 | ts | f | g |
170======================================================================================================================================
171 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
172 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
173 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
174 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
175taos> select * from a1 a join (select today() as ts1, * from b1 order by ts desc) b on a.ts = b.ts1;
176 ts | f | g | ts1 | ts | f | g |
177======================================================================================================================================
178 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
179 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
180 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
181 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
182taos> select * from a1 a join (select today() as ts1, * from b1 order by f) b on a.ts = b.ts1;
183 ts | f | g | ts1 | ts | f | g |
184======================================================================================================================================
185 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
186 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
187 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
188 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
189taos> /*subq+subq*/
190taos> select * from (select * from a1 order by ts) a join (select * from b1 order by ts) b on a.ts = b.ts;
191 ts | f | g | ts | f | g |
192============================================================================================================
193 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | 301 | 3011 |
194 __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:01.000 | 302 | 3012 |
195 __tomorrow__ 00:00:00.000 | 103 | 1013 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
196 __tomorrow__ 00:00:02.000 | 104 | 1014 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
197taos> select * from (select * from a1 order by ts) a join (select * from b1 order by ts desc) b on a.ts = b.ts;
198 ts | f | g | ts | f | g |
199============================================================================================================
200 __tomorrow__ 00:00:02.000 | 104 | 1014 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
201 __tomorrow__ 00:00:00.000 | 103 | 1013 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
202 __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:01.000 | 302 | 3012 |
203 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | 301 | 3011 |
204taos> select * from (select * from a1 order by ts desc) a join (select * from b1 order by ts desc) b on a.ts = b.ts;
205 ts | f | g | ts | f | g |
206============================================================================================================
207 __tomorrow__ 00:00:02.000 | 104 | 1014 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
208 __tomorrow__ 00:00:00.000 | 103 | 1013 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
209 __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:01.000 | 302 | 3012 |
210 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | 301 | 3011 |
211taos> /*subq+const subq*/
212taos> select * from (select * from a1 order by ts) a join (select today() as ts1, * from b1 order by ts) b on a.ts = b.ts;
213 ts | f | g | ts1 | ts | f | g |
214======================================================================================================================================
215 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
216 __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
217 __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
218 __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
219taos> select * from (select * from a1 order by ts) a join (select today() as ts1, * from b1 order by ts desc) b on a.ts = b.ts;
220 ts | f | g | ts1 | ts | f | g |
221======================================================================================================================================
222 __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
223 __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
224 __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
225 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
226taos> select * from (select * from a1 order by ts desc) a join (select today() as ts1, * from b1 order by ts) b on a.ts = b.ts;
227 ts | f | g | ts1 | ts | f | g |
228======================================================================================================================================
229 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
230 __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
231 __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
232 __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
233taos> select * from (select * from a1 order by ts desc) a join (select today() as ts1, * from b1 order by ts desc) b on a.ts = b.ts;
234 ts | f | g | ts1 | ts | f | g |
235======================================================================================================================================
236 __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
237 __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
238 __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
239 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
240taos> select * from (select * from a1 order by ts) a join (select today() as ts1, * from b1 order by ts) b on a.ts = b.ts1;
241 ts | f | g | ts1 | ts | f | g |
242======================================================================================================================================
243 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
244 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
245 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
246 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
247taos> select * from (select * from a1 order by ts) a join (select today() as ts1, * from b1 order by ts desc) b on a.ts = b.ts1;
248 ts | f | g | ts1 | ts | f | g |
249======================================================================================================================================
250 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
251 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
252 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
253 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
254taos> select * from (select * from a1 order by ts) a join (select today() as ts1, * from b1 order by f) b on a.ts = b.ts1;
255 ts | f | g | ts1 | ts | f | g |
256======================================================================================================================================
257 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
258 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
259 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
260 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
261taos> select * from (select * from a1 order by ts desc) a join (select today() as ts1, * from b1 order by ts) b on a.ts = b.ts1;
262 ts | f | g | ts1 | ts | f | g |
263======================================================================================================================================
264 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
265 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
266 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
267 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
268taos> select * from (select * from a1 order by ts desc) a join (select today() as ts1, * from b1 order by ts desc) b on a.ts = b.ts1;
269 ts | f | g | ts1 | ts | f | g |
270======================================================================================================================================
271 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
272 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
273 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
274 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
275taos> select * from (select * from a1 order by ts desc) a join (select today() as ts1, * from b1 order by f) b on a.ts = b.ts1;
276 ts | f | g | ts1 | ts | f | g |
277======================================================================================================================================
278 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
279 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
280 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
281 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
282taos> /*const subq+const subq*/
283taos> select * from (select today() as ts1, * from a1 order by ts) a join (select today() as ts1, * from b1 order by ts) b on a.ts = b.ts;
284 ts1 | ts | f | g | ts1 | ts | f | g |
285================================================================================================================================================================
286 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
287 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
288 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
289 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
290taos> select * from (select today() as ts1, * from a1 order by ts) a join (select today() as ts1, * from b1 order by ts desc) b on a.ts = b.ts;
291 ts1 | ts | f | g | ts1 | ts | f | g |
292================================================================================================================================================================
293 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
294 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
295 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
296 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
297taos> select * from (select today() as ts1, * from a1 order by ts desc) a join (select today() as ts1, * from b1 order by ts) b on a.ts = b.ts;
298 ts1 | ts | f | g | ts1 | ts | f | g |
299================================================================================================================================================================
300 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
301 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
302 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
303 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
304taos> select * from (select today() as ts1, * from a1 order by ts desc) a join (select today() as ts1, * from b1 order by ts desc) b on a.ts = b.ts;
305 ts1 | ts | f | g | ts1 | ts | f | g |
306================================================================================================================================================================
307 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
308 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
309 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
310 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
311taos> select * from (select today() as ts1, * from a1 order by ts) a join (select today() as ts1, * from b1 order by ts) b on a.ts1 = b.ts;
312 ts1 | ts | f | g | ts1 | ts | f | g |
313================================================================================================================================================================
314 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
315 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
316 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
317 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
318taos> select * from (select today() as ts1, * from a1 order by ts) a join (select today() as ts1, * from b1 order by ts desc) b on a.ts1 = b.ts;
319 ts1 | ts | f | g | ts1 | ts | f | g |
320================================================================================================================================================================
321 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
322 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
323 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
324 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
325taos> select * from (select today() as ts1, * from a1 order by ts desc) a join (select today() as ts1, * from b1 order by ts) b on a.ts1 = b.ts;
326 ts1 | ts | f | g | ts1 | ts | f | g |
327================================================================================================================================================================
328 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
329 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
330 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
331 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
332taos> select * from (select today() as ts1, * from a1 order by ts desc) a join (select today() as ts1, * from b1 order by ts desc) b on a.ts1 = b.ts;
333 ts1 | ts | f | g | ts1 | ts | f | g |
334================================================================================================================================================================
335 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
336 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
337 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
338 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
339taos> select * from (select today() as ts1, * from a1 order by f desc) a join (select today() as ts1, * from b1 order by ts) b on a.ts1 = b.ts;
340 ts1 | ts | f | g | ts1 | ts | f | g |
341================================================================================================================================================================
342 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
343 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
344 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
345 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
346taos> select * from (select today() as ts1, * from a1 order by f desc) a join (select today() as ts1, * from b1 order by ts desc) b on a.ts1 = b.ts;
347 ts1 | ts | f | g | ts1 | ts | f | g |
348================================================================================================================================================================
349 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
350 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
351 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
352 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
353taos> select * from (select today() as ts1, * from a1 order by ts) a join (select today() as ts1, * from b1 order by ts) b on a.ts1 = b.ts1;
354 ts1 | ts | f | g | ts1 | ts | f | g |
355================================================================================================================================================================
356 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
357 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
358 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
359 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
360 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
361 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
362 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
363 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
364 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
365 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
366 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
367 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
368 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
369 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
370 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
371 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
372taos> select * from (select today() as ts1, * from a1 order by ts) a join (select today() as ts1, * from b1 order by ts desc) b on a.ts1 = b.ts1;
373 ts1 | ts | f | g | ts1 | ts | f | g |
374================================================================================================================================================================
375 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
376 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
377 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
378 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
379 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
380 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
381 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
382 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
383 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
384 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
385 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
386 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
387 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
388 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
389 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
390 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
391taos> select * from (select today() as ts1, * from a1 order by ts) a join (select today() as ts1, * from b1 order by f) b on a.ts1 = b.ts1;
392 ts1 | ts | f | g | ts1 | ts | f | g |
393================================================================================================================================================================
394 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
395 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
396 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
397 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
398 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
399 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
400 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
401 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
402 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
403 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
404 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
405 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
406 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
407 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
408 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
409 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
410taos> select * from (select today() as ts1, * from a1 order by ts desc) a join (select today() as ts1, * from b1 order by ts) b on a.ts1 = b.ts1;
411 ts1 | ts | f | g | ts1 | ts | f | g |
412================================================================================================================================================================
413 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
414 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
415 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
416 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
417 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
418 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
419 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
420 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
421 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
422 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
423 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
424 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
425 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
426 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
427 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
428 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
429taos> select * from (select today() as ts1, * from a1 order by ts desc) a join (select today() as ts1, * from b1 order by ts desc) b on a.ts1 = b.ts1;
430 ts1 | ts | f | g | ts1 | ts | f | g |
431================================================================================================================================================================
432 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
433 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
434 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
435 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
436 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
437 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
438 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
439 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
440 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
441 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
442 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
443 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
444 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
445 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
446 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
447 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
448taos> select * from (select today() as ts1, * from a1 order by ts desc) a join (select today() as ts1, * from b1 order by f) b on a.ts1 = b.ts1;
449 ts1 | ts | f | g | ts1 | ts | f | g |
450================================================================================================================================================================
451 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
452 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
453 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
454 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
455 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
456 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
457 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
458 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
459 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
460 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
461 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
462 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
463 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
464 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
465 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
466 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
467taos> select * from (select today() as ts1, * from a1 order by f desc) a join (select today() as ts1, * from b1 order by ts) b on a.ts1 = b.ts1;
468 ts1 | ts | f | g | ts1 | ts | f | g |
469================================================================================================================================================================
470 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
471 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
472 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
473 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
474 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
475 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
476 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
477 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
478 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
479 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
480 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
481 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
482 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
483 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
484 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
485 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
486taos> select * from (select today() as ts1, * from a1 order by f desc) a join (select today() as ts1, * from b1 order by ts desc) b on a.ts1 = b.ts1;
487 ts1 | ts | f | g | ts1 | ts | f | g |
488================================================================================================================================================================
489 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
490 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
491 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
492 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
493 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
494 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
495 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
496 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
497 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
498 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
499 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
500 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
501 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
502 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
503 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
504 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
505taos> select * from (select today() as ts1, * from a1 order by f desc) a join (select today() as ts1, * from b1 order by f) b on a.ts1 = b.ts1;
506 ts1 | ts | f | g | ts1 | ts | f | g |
507================================================================================================================================================================
508 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
509 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
510 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
511 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
512 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
513 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
514 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
515 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
516 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
517 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
518 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
519 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
520 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
521 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
522 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
523 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
524taos> select * from (select today() as ts1, * from a1 order by ts) a join (select today() as ts1, * from b1 order by ts) b on a.ts1 = b.ts1 and a.ts = b.ts;
525 ts1 | ts | f | g | ts1 | ts | f | g |
526================================================================================================================================================================
527 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
528 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
529 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
530 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
531taos> select * from (select today() as ts1, * from a1 order by ts) a join (select today() as ts1, * from b1 order by ts desc) b on a.ts1 = b.ts1 and a.ts = b.ts;
532 ts1 | ts | f | g | ts1 | ts | f | g |
533================================================================================================================================================================
534 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
535 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
536 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
537 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
538taos> select * from (select today() as ts1, * from a1 order by ts) a join (select today() as ts1, * from b1 order by f) b on a.ts1 = b.ts1 and a.ts = b.ts;
539 ts1 | ts | f | g | ts1 | ts | f | g |
540================================================================================================================================================================
541 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
542 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
543 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
544 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
545taos> select * from (select today() as ts1, * from a1 order by ts desc) a join (select today() as ts1, * from b1 order by ts) b on a.ts1 = b.ts1 and a.ts = b.ts;
546 ts1 | ts | f | g | ts1 | ts | f | g |
547================================================================================================================================================================
548 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
549 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
550 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
551 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
552taos> select * from (select today() as ts1, * from a1 order by ts desc) a join (select today() as ts1, * from b1 order by ts desc) b on a.ts1 = b.ts1 and a.ts = b.ts;
553 ts1 | ts | f | g | ts1 | ts | f | g |
554================================================================================================================================================================
555 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
556 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
557 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
558 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
559taos> select * from (select today() as ts1, * from a1 order by ts desc) a join (select today() as ts1, * from b1 order by f) b on a.ts1 = b.ts1 and a.ts = b.ts;
560 ts1 | ts | f | g | ts1 | ts | f | g |
561================================================================================================================================================================
562 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
563 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
564 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
565 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
566taos> select * from (select today() as ts1, * from a1 order by f desc) a join (select today() as ts1, * from b1 order by ts) b on a.ts1 = b.ts1 and a.ts = b.ts;
567 ts1 | ts | f | g | ts1 | ts | f | g |
568================================================================================================================================================================
569 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
570 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
571 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
572 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
573taos> select * from (select today() as ts1, * from a1 order by f desc) a join (select today() as ts1, * from b1 order by ts desc) b on a.ts1 = b.ts1 and a.ts = b.ts;
574 ts1 | ts | f | g | ts1 | ts | f | g |
575================================================================================================================================================================
576 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
577 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
578 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
579 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
580taos> select * from (select today() as ts1, * from a1 order by f desc) a join (select today() as ts1, * from b1 order by f) b on a.ts1 = b.ts1 and a.ts = b.ts;
581 ts1 | ts | f | g | ts1 | ts | f | g |
582================================================================================================================================================================
583 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
584 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
585 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
586 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
587taos> /*functions*/
588taos> select * from a1 a join (select to_timestamp('__today__', 'yyyy-mm-dd') as ts1, * from b1) b on a.ts = b.ts1;
589 ts | f | g | ts1 | ts | f | g |
590======================================================================================================================================
591 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
592 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
593 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
594 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
595taos> select * from a1 a join (select to_timestamp('__today__', 'yyyy-mm-dd') + 1s as ts1, * from b1) b on a.ts = b.ts1;
596 ts | f | g | ts1 | ts | f | g |
597======================================================================================================================================
598 __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:01.000 | __today__ 00:00:00.000 | 301 | 3011 |
599 __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:01.000 | __today__ 00:00:01.000 | 302 | 3012 |
600 __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:01.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
601 __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:01.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
602taos> select * from a1 a join (select to_unixtimestamp('__today__ 00:00:00.000', 1) as ts1, * from b1) b on a.ts = b.ts1;
603 ts | f | g | ts1 | ts | f | g |
604======================================================================================================================================
605 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
606 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
607 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
608 __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
609taos> select * from a1 a join (select to_unixtimestamp('__today__ 00:00:00.000', 1) + 1s as ts1, * from b1) b on a.ts = b.ts1;
610 ts | f | g | ts1 | ts | f | g |
611======================================================================================================================================
612 __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:01.000 | __today__ 00:00:00.000 | 301 | 3011 |
613 __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:01.000 | __today__ 00:00:01.000 | 302 | 3012 |
614 __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:01.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
615 __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:01.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
616taos> /*view*/
617taos> select * from view1 a join (select * from b1 order by ts) b on a.ts = b.ts;
618 ts1 | ts | f | g | ts | f | g |
619======================================================================================================================================
620 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | 301 | 3011 |
621 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:01.000 | 302 | 3012 |
622 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
623 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
624taos> select * from view1 a join (select * from b1 order by ts desc) b on a.ts = b.ts;
625 ts1 | ts | f | g | ts | f | g |
626======================================================================================================================================
627 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
628 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
629 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:01.000 | 302 | 3012 |
630 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | 301 | 3011 |
631taos> select * from view1 a join (select * from b1 order by ts) b on a.ts1 = b.ts;
632 ts1 | ts | f | g | ts | f | g |
633======================================================================================================================================
634 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | 301 | 3011 |
635 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | 301 | 3011 |
636 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | 301 | 3011 |
637 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | 301 | 3011 |
638taos> select * from view1 a join (select * from b1 order by ts desc) b on a.ts1 = b.ts;
639 ts1 | ts | f | g | ts | f | g |
640======================================================================================================================================
641 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | 301 | 3011 |
642 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | 301 | 3011 |
643 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | 301 | 3011 |
644 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | 301 | 3011 |
645taos> select * from view1 a join (select today() as ts1, * from b1 order by ts) b on a.ts = b.ts;
646 ts1 | ts | f | g | ts1 | ts | f | g |
647================================================================================================================================================================
648 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
649 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
650 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
651 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
652taos> select * from view1 a join (select today() as ts1, * from b1 order by ts desc) b on a.ts = b.ts;
653 ts1 | ts | f | g | ts1 | ts | f | g |
654================================================================================================================================================================
655 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
656 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
657 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
658 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
659taos> select * from view1 a join (select today() as ts1, * from b1 order by ts) b on a.ts1 = b.ts;
660 ts1 | ts | f | g | ts1 | ts | f | g |
661================================================================================================================================================================
662 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
663 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
664 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
665 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
666taos> select * from view1 a join (select today() as ts1, * from b1 order by ts desc) b on a.ts1 = b.ts;
667 ts1 | ts | f | g | ts1 | ts | f | g |
668================================================================================================================================================================
669 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
670 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
671 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
672 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
673taos> select * from view1 a join (select today() as ts1, * from b1 order by ts) b on a.ts = b.ts1;
674 ts1 | ts | f | g | ts1 | ts | f | g |
675================================================================================================================================================================
676 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
677 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
678 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
679 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
680taos> select * from view1 a join (select today() as ts1, * from b1 order by ts desc) b on a.ts = b.ts1;
681 ts1 | ts | f | g | ts1 | ts | f | g |
682================================================================================================================================================================
683 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
684 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
685 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
686 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
687taos> select * from view1 a join (select today() as ts1, * from b1 order by f) b on a.ts = b.ts1;
688 ts1 | ts | f | g | ts1 | ts | f | g |
689================================================================================================================================================================
690 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
691 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
692 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
693 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
694taos> select * from view1 a join (select today() as ts1, * from b1 order by ts) b on a.ts1 = b.ts1;
695 ts1 | ts | f | g | ts1 | ts | f | g |
696================================================================================================================================================================
697 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
698 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
699 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
700 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
701 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
702 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
703 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
704 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
705 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
706 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
707 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
708 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
709 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
710 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
711 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
712 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
713taos> select * from view1 a join (select today() as ts1, * from b1 order by ts desc) b on a.ts1 = b.ts1;
714 ts1 | ts | f | g | ts1 | ts | f | g |
715================================================================================================================================================================
716 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
717 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
718 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
719 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
720 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
721 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
722 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
723 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
724 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
725 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
726 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
727 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
728 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
729 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
730 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
731 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
732taos> select * from view1 a join (select today() as ts1, * from b1 order by f) b on a.ts1 = b.ts1;
733 ts1 | ts | f | g | ts1 | ts | f | g |
734================================================================================================================================================================
735 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
736 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
737 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
738 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
739 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
740 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
741 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
742 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
743 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
744 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
745 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
746 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
747 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
748 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
749 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
750 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
751taos> select * from view1 a join (select today() as ts1, * from b1 order by f) b on a.ts1 = b.ts1 where a.ts1 is null;
752taos> select * from view1 a join (select today() as ts1, * from b1 order by f) b on a.ts1 = b.ts1 where a.ts1 is not null;
753 ts1 | ts | f | g | ts1 | ts | f | g |
754================================================================================================================================================================
755 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
756 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
757 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
758 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
759 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
760 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
761 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
762 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
763 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
764 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
765 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
766 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
767 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
768 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
769 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
770 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
771taos> select * from view1 a, (select today() as ts1, * from b1 order by f) b where a.ts1 = b.ts1;
772 ts1 | ts | f | g | ts1 | ts | f | g |
773================================================================================================================================================================
774 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
775 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
776 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
777 __today__ 00:00:00.000 | __today__ 00:00:00.000 | 101 | 1011 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
778 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
779 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
780 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
781 __today__ 00:00:00.000 | __today__ 00:00:01.000 | 102 | 1012 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
782 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
783 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
784 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
785 __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 103 | 1013 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |
786 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:00.000 | 301 | 3011 |
787 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __today__ 00:00:01.000 | 302 | 3012 |
788 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:00.000 | 303 | 3013 |
789 __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 104 | 1014 | __today__ 00:00:00.000 | __tomorrow__ 00:00:02.000 | 304 | 3014 |