mirror of
https://github.com/taosdata/TDengine
synced 2026-05-24 10:09:01 +00:00
3592 lines
121 KiB
Text
3592 lines
121 KiB
Text
|
|
taos> select abs(tinyint_col) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
abs(tinyint_col) |
|
|
===================
|
|
80 |
|
|
80 |
|
|
44 |
|
|
44 |
|
|
91 |
|
|
91 |
|
|
25 |
|
|
25 |
|
|
70 |
|
|
70 |
|
|
106 |
|
|
106 |
|
|
113 |
|
|
113 |
|
|
109 |
|
|
109 |
|
|
9 |
|
|
9 |
|
|
102 |
|
|
102 |
|
|
9 |
|
|
9 |
|
|
89 |
|
|
89 |
|
|
69 |
|
|
69 |
|
|
10 |
|
|
10 |
|
|
28 |
|
|
28 |
|
|
101 |
|
|
101 |
|
|
24 |
|
|
24 |
|
|
97 |
|
|
97 |
|
|
126 |
|
|
126 |
|
|
10 |
|
|
10 |
|
|
42 |
|
|
42 |
|
|
20 |
|
|
20 |
|
|
104 |
|
|
104 |
|
|
12 |
|
|
12 |
|
|
66 |
|
|
66 |
|
|
|
|
taos> select acos(u_tinyint_col) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
acos(u_tinyint_col) |
|
|
============================
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
|
|
taos> select asin(u_tinyint_col) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
asin(u_tinyint_col) |
|
|
============================
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
1.5707963267949 |
|
|
1.5707963267949 |
|
|
1.5707963267949 |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
|
|
taos> select atan(u_tinyint_col) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
atan(u_tinyint_col) |
|
|
============================
|
|
1.53632722579539 |
|
|
1.53632722579539 |
|
|
1.53632722579539 |
|
|
1.56446729737869 |
|
|
1.56446729737869 |
|
|
1.56446729737869 |
|
|
0.785398163397448 |
|
|
0.785398163397448 |
|
|
0.785398163397448 |
|
|
1.55039099610836 |
|
|
1.55039099610836 |
|
|
1.55039099610836 |
|
|
1.55728363578157 |
|
|
1.55728363578157 |
|
|
1.55728363578157 |
|
|
1.48013643959415 |
|
|
1.48013643959415 |
|
|
1.48013643959415 |
|
|
1.55781004387472 |
|
|
1.55781004387472 |
|
|
1.55781004387472 |
|
|
1.55492464380311 |
|
|
1.55492464380311 |
|
|
1.55492464380311 |
|
|
1.56642954232449 |
|
|
1.56642954232449 |
|
|
1.56642954232449 |
|
|
1.56566816662066 |
|
|
1.56566816662066 |
|
|
1.56566816662066 |
|
|
1.53081763967161 |
|
|
1.53081763967161 |
|
|
1.53081763967161 |
|
|
1.56530187659168 |
|
|
1.56530187659168 |
|
|
1.56530187659168 |
|
|
1.56574586468582 |
|
|
1.56574586468582 |
|
|
1.56574586468582 |
|
|
1.56544878418575 |
|
|
1.56544878418575 |
|
|
1.56544878418575 |
|
|
1.56027039976317 |
|
|
1.56027039976317 |
|
|
1.56027039976317 |
|
|
1.56462356569012 |
|
|
1.56462356569012 |
|
|
1.56462356569012 |
|
|
1.55384879698849 |
|
|
1.55384879698849 |
|
|
|
|
taos> select ceil(tinyint_col) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
ceil(tinyint_col) |
|
|
====================
|
|
80 |
|
|
80 |
|
|
44 |
|
|
44 |
|
|
-91 |
|
|
-91 |
|
|
25 |
|
|
25 |
|
|
70 |
|
|
70 |
|
|
-106 |
|
|
-106 |
|
|
-113 |
|
|
-113 |
|
|
109 |
|
|
109 |
|
|
-9 |
|
|
-9 |
|
|
-102 |
|
|
-102 |
|
|
9 |
|
|
9 |
|
|
89 |
|
|
89 |
|
|
-69 |
|
|
-69 |
|
|
10 |
|
|
10 |
|
|
-28 |
|
|
-28 |
|
|
-101 |
|
|
-101 |
|
|
24 |
|
|
24 |
|
|
97 |
|
|
97 |
|
|
126 |
|
|
126 |
|
|
10 |
|
|
10 |
|
|
42 |
|
|
42 |
|
|
20 |
|
|
20 |
|
|
-104 |
|
|
-104 |
|
|
12 |
|
|
12 |
|
|
-66 |
|
|
-66 |
|
|
|
|
taos> select cos(u_tinyint_col) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
cos(u_tinyint_col) |
|
|
============================
|
|
-0.748057529689 |
|
|
-0.748057529689 |
|
|
-0.748057529689 |
|
|
0.60552787498699 |
|
|
0.60552787498699 |
|
|
0.60552787498699 |
|
|
0.54030230586814 |
|
|
0.54030230586814 |
|
|
0.54030230586814 |
|
|
0.300592543743637 |
|
|
0.300592543743637 |
|
|
0.300592543743637 |
|
|
0.171717341830778 |
|
|
0.171717341830778 |
|
|
0.171717341830778 |
|
|
0.00442569798805079 |
|
|
0.00442569798805079 |
|
|
0.00442569798805079 |
|
|
-0.0309750317312165 |
|
|
-0.0309750317312165 |
|
|
-0.0309750317312165 |
|
|
0.98589658158255 |
|
|
0.98589658158255 |
|
|
0.98589658158255 |
|
|
-0.943994086083478 |
|
|
-0.943994086083478 |
|
|
-0.943994086083478 |
|
|
0.975622697919444 |
|
|
0.975622697919444 |
|
|
0.975622697919444 |
|
|
0.991202811863474 |
|
|
0.991202811863474 |
|
|
0.991202811863474 |
|
|
0.977533294705597 |
|
|
0.977533294705597 |
|
|
0.977533294705597 |
|
|
-0.996828594969431 |
|
|
-0.996828594969431 |
|
|
-0.996828594969431 |
|
|
0.0751661500081933 |
|
|
0.0751661500081933 |
|
|
0.0751661500081933 |
|
|
0.73017356099482 |
|
|
0.73017356099482 |
|
|
0.73017356099482 |
|
|
0.206482229337811 |
|
|
0.206482229337811 |
|
|
0.206482229337811 |
|
|
-0.771080222975845 |
|
|
-0.771080222975845 |
|
|
|
|
taos> select floor(tinyint_col) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
floor(tinyint_col) |
|
|
=====================
|
|
80 |
|
|
80 |
|
|
44 |
|
|
44 |
|
|
-91 |
|
|
-91 |
|
|
25 |
|
|
25 |
|
|
70 |
|
|
70 |
|
|
-106 |
|
|
-106 |
|
|
-113 |
|
|
-113 |
|
|
109 |
|
|
109 |
|
|
-9 |
|
|
-9 |
|
|
-102 |
|
|
-102 |
|
|
9 |
|
|
9 |
|
|
89 |
|
|
89 |
|
|
-69 |
|
|
-69 |
|
|
10 |
|
|
10 |
|
|
-28 |
|
|
-28 |
|
|
-101 |
|
|
-101 |
|
|
24 |
|
|
24 |
|
|
97 |
|
|
97 |
|
|
126 |
|
|
126 |
|
|
10 |
|
|
10 |
|
|
42 |
|
|
42 |
|
|
20 |
|
|
20 |
|
|
-104 |
|
|
-104 |
|
|
12 |
|
|
12 |
|
|
-66 |
|
|
-66 |
|
|
|
|
taos> select log(tinyint_col) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
log(tinyint_col) |
|
|
============================
|
|
4.38202663467388 |
|
|
4.38202663467388 |
|
|
3.78418963391826 |
|
|
3.78418963391826 |
|
|
NULL |
|
|
NULL |
|
|
3.2188758248682 |
|
|
3.2188758248682 |
|
|
4.24849524204936 |
|
|
4.24849524204936 |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
4.69134788222914 |
|
|
4.69134788222914 |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
2.19722457733622 |
|
|
2.19722457733622 |
|
|
4.48863636973214 |
|
|
4.48863636973214 |
|
|
NULL |
|
|
NULL |
|
|
2.30258509299405 |
|
|
2.30258509299405 |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
3.17805383034795 |
|
|
3.17805383034795 |
|
|
4.57471097850338 |
|
|
4.57471097850338 |
|
|
4.83628190695148 |
|
|
4.83628190695148 |
|
|
2.30258509299405 |
|
|
2.30258509299405 |
|
|
3.73766961828337 |
|
|
3.73766961828337 |
|
|
2.99573227355399 |
|
|
2.99573227355399 |
|
|
NULL |
|
|
NULL |
|
|
2.484906649788 |
|
|
2.484906649788 |
|
|
NULL |
|
|
NULL |
|
|
|
|
taos> select pow(tinyint_col, 2) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
pow(tinyint_col, 2) |
|
|
============================
|
|
6400 |
|
|
6400 |
|
|
1936 |
|
|
1936 |
|
|
8281 |
|
|
8281 |
|
|
625 |
|
|
625 |
|
|
4900 |
|
|
4900 |
|
|
11236 |
|
|
11236 |
|
|
12769 |
|
|
12769 |
|
|
11881 |
|
|
11881 |
|
|
81 |
|
|
81 |
|
|
10404 |
|
|
10404 |
|
|
81 |
|
|
81 |
|
|
7921 |
|
|
7921 |
|
|
4761 |
|
|
4761 |
|
|
100 |
|
|
100 |
|
|
784 |
|
|
784 |
|
|
10201 |
|
|
10201 |
|
|
576 |
|
|
576 |
|
|
9409 |
|
|
9409 |
|
|
15876 |
|
|
15876 |
|
|
100 |
|
|
100 |
|
|
1764 |
|
|
1764 |
|
|
400 |
|
|
400 |
|
|
10816 |
|
|
10816 |
|
|
144 |
|
|
144 |
|
|
4356 |
|
|
4356 |
|
|
|
|
taos> select round(double_col) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
round(double_col) |
|
|
============================
|
|
73495721 |
|
|
73495721 |
|
|
34582987 |
|
|
34582987 |
|
|
94762575 |
|
|
94762575 |
|
|
4540043 |
|
|
4540043 |
|
|
-16761361 |
|
|
-16761361 |
|
|
-29472171 |
|
|
-29472171 |
|
|
18127464 |
|
|
18127464 |
|
|
20245732 |
|
|
20245732 |
|
|
-92954067 |
|
|
-92954067 |
|
|
-63915769 |
|
|
-63915769 |
|
|
-90274062 |
|
|
-90274062 |
|
|
23650963 |
|
|
23650963 |
|
|
22941054 |
|
|
22941054 |
|
|
21727909 |
|
|
21727909 |
|
|
-11226521 |
|
|
-11226521 |
|
|
31137660 |
|
|
31137660 |
|
|
58787061 |
|
|
58787061 |
|
|
69329733 |
|
|
69329733 |
|
|
-12458280 |
|
|
-12458280 |
|
|
55384136 |
|
|
55384136 |
|
|
27402214 |
|
|
27402214 |
|
|
-44610868 |
|
|
-44610868 |
|
|
47856371 |
|
|
47856371 |
|
|
-28575795 |
|
|
-28575795 |
|
|
78716790 |
|
|
78716790 |
|
|
|
|
taos> select sin(u_tinyint_col) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
sin(u_tinyint_col) |
|
|
============================
|
|
-0.663633884212968 |
|
|
-0.663633884212968 |
|
|
-0.663633884212968 |
|
|
0.795824096527455 |
|
|
0.795824096527455 |
|
|
0.795824096527455 |
|
|
0.841470984807897 |
|
|
0.841470984807897 |
|
|
0.841470984807897 |
|
|
-0.953752652759472 |
|
|
-0.953752652759472 |
|
|
-0.953752652759472 |
|
|
-0.985146260468247 |
|
|
-0.985146260468247 |
|
|
-0.985146260468247 |
|
|
-0.999990206550703 |
|
|
-0.999990206550703 |
|
|
-0.999990206550703 |
|
|
0.999520158580731 |
|
|
0.999520158580731 |
|
|
0.999520158580731 |
|
|
0.167355700302807 |
|
|
0.167355700302807 |
|
|
0.167355700302807 |
|
|
0.329962369732397 |
|
|
0.329962369732397 |
|
|
0.329962369732397 |
|
|
0.219454667994064 |
|
|
0.219454667994064 |
|
|
0.219454667994064 |
|
|
-0.132351750097773 |
|
|
-0.132351750097773 |
|
|
-0.132351750097773 |
|
|
-0.210781065900192 |
|
|
-0.210781065900192 |
|
|
-0.210781065900192 |
|
|
-0.0795785916642835 |
|
|
-0.0795785916642835 |
|
|
-0.0795785916642835 |
|
|
-0.997171023392149 |
|
|
-0.997171023392149 |
|
|
-0.997171023392149 |
|
|
0.683261714736121 |
|
|
0.683261714736121 |
|
|
0.683261714736121 |
|
|
-0.97845035079338 |
|
|
-0.97845035079338 |
|
|
-0.97845035079338 |
|
|
0.636738007139138 |
|
|
0.636738007139138 |
|
|
|
|
taos> select sqrt(u_tinyint_col) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
sqrt(u_tinyint_col) |
|
|
============================
|
|
5.3851648071345 |
|
|
5.3851648071345 |
|
|
5.3851648071345 |
|
|
12.5698050899765 |
|
|
12.5698050899765 |
|
|
12.5698050899765 |
|
|
1 |
|
|
1 |
|
|
1 |
|
|
7 |
|
|
7 |
|
|
7 |
|
|
8.60232526704263 |
|
|
8.60232526704263 |
|
|
8.60232526704263 |
|
|
3.3166247903554 |
|
|
3.3166247903554 |
|
|
3.3166247903554 |
|
|
8.77496438739212 |
|
|
8.77496438739212 |
|
|
8.77496438739212 |
|
|
7.93725393319377 |
|
|
7.93725393319377 |
|
|
7.93725393319377 |
|
|
15.1327459504216 |
|
|
15.1327459504216 |
|
|
15.1327459504216 |
|
|
13.9642400437689 |
|
|
13.9642400437689 |
|
|
13.9642400437689 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
13.490737563232 |
|
|
13.490737563232 |
|
|
13.490737563232 |
|
|
14.0712472794703 |
|
|
14.0712472794703 |
|
|
14.0712472794703 |
|
|
13.6747943311773 |
|
|
13.6747943311773 |
|
|
13.6747943311773 |
|
|
9.74679434480896 |
|
|
9.74679434480896 |
|
|
9.74679434480896 |
|
|
12.7279220613579 |
|
|
12.7279220613579 |
|
|
12.7279220613579 |
|
|
7.68114574786861 |
|
|
7.68114574786861 |
|
|
|
|
taos> select tan(u_tinyint_col) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
tan(u_tinyint_col) |
|
|
============================
|
|
0.887142843798215 |
|
|
0.887142843798215 |
|
|
0.887142843798215 |
|
|
1.31426500645334 |
|
|
1.31426500645334 |
|
|
1.31426500645334 |
|
|
1.5574077246549 |
|
|
1.5574077246549 |
|
|
1.5574077246549 |
|
|
-3.17290855215919 |
|
|
-3.17290855215919 |
|
|
-3.17290855215919 |
|
|
-5.737022539279 |
|
|
-5.737022539279 |
|
|
-5.737022539279 |
|
|
-225.950846454195 |
|
|
-225.950846454195 |
|
|
-225.950846454195 |
|
|
-32.2685757759344 |
|
|
-32.2685757759344 |
|
|
-32.2685757759344 |
|
|
0.169749752082688 |
|
|
0.169749752082688 |
|
|
0.169749752082688 |
|
|
-0.349538598383993 |
|
|
-0.349538598383993 |
|
|
-0.349538598383993 |
|
|
0.224938050808022 |
|
|
0.224938050808022 |
|
|
0.224938050808022 |
|
|
-0.133526407021536 |
|
|
-0.133526407021536 |
|
|
-0.133526407021536 |
|
|
-0.215625459553961 |
|
|
-0.215625459553961 |
|
|
-0.215625459553961 |
|
|
0.0798317705429828 |
|
|
0.0798317705429828 |
|
|
0.0798317705429828 |
|
|
-13.2662245343609 |
|
|
-13.2662245343609 |
|
|
-13.2662245343609 |
|
|
0.935752472063239 |
|
|
0.935752472063239 |
|
|
0.935752472063239 |
|
|
-4.73866615026035 |
|
|
-4.73866615026035 |
|
|
-4.73866615026035 |
|
|
-0.825774009196815 |
|
|
-0.825774009196815 |
|
|
|
|
taos> select PI() from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
pi() |
|
|
============================
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
3.14159265358979 |
|
|
|
|
taos> select PI(), u_tinyint_col from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
pi() | u_tinyint_col |
|
|
============================================
|
|
3.14159265358979 | 29 |
|
|
3.14159265358979 | 29 |
|
|
3.14159265358979 | 29 |
|
|
3.14159265358979 | 158 |
|
|
3.14159265358979 | 158 |
|
|
3.14159265358979 | 158 |
|
|
3.14159265358979 | 1 |
|
|
3.14159265358979 | 1 |
|
|
3.14159265358979 | 1 |
|
|
3.14159265358979 | 49 |
|
|
3.14159265358979 | 49 |
|
|
3.14159265358979 | 49 |
|
|
3.14159265358979 | 74 |
|
|
3.14159265358979 | 74 |
|
|
3.14159265358979 | 74 |
|
|
3.14159265358979 | 11 |
|
|
3.14159265358979 | 11 |
|
|
3.14159265358979 | 11 |
|
|
3.14159265358979 | 77 |
|
|
3.14159265358979 | 77 |
|
|
3.14159265358979 | 77 |
|
|
3.14159265358979 | 63 |
|
|
3.14159265358979 | 63 |
|
|
3.14159265358979 | 63 |
|
|
3.14159265358979 | 229 |
|
|
3.14159265358979 | 229 |
|
|
3.14159265358979 | 229 |
|
|
3.14159265358979 | 195 |
|
|
3.14159265358979 | 195 |
|
|
3.14159265358979 | 195 |
|
|
3.14159265358979 | 25 |
|
|
3.14159265358979 | 25 |
|
|
3.14159265358979 | 25 |
|
|
3.14159265358979 | 182 |
|
|
3.14159265358979 | 182 |
|
|
3.14159265358979 | 182 |
|
|
3.14159265358979 | 198 |
|
|
3.14159265358979 | 198 |
|
|
3.14159265358979 | 198 |
|
|
3.14159265358979 | 187 |
|
|
3.14159265358979 | 187 |
|
|
3.14159265358979 | 187 |
|
|
3.14159265358979 | 95 |
|
|
3.14159265358979 | 95 |
|
|
3.14159265358979 | 95 |
|
|
3.14159265358979 | 162 |
|
|
3.14159265358979 | 162 |
|
|
3.14159265358979 | 162 |
|
|
3.14159265358979 | 59 |
|
|
3.14159265358979 | 59 |
|
|
|
|
taos> select exp(tinyint_col) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
exp(tinyint_col) |
|
|
============================
|
|
5.54062238439351e+34 |
|
|
5.54062238439351e+34 |
|
|
1.28516001143593e+19 |
|
|
1.28516001143593e+19 |
|
|
3.01440878506537e-40 |
|
|
3.01440878506537e-40 |
|
|
72004899337.3859 |
|
|
72004899337.3859 |
|
|
2.51543867091917e+30 |
|
|
2.51543867091917e+30 |
|
|
9.22114642292588e-47 |
|
|
9.22114642292588e-47 |
|
|
8.40859712480364e-50 |
|
|
8.40859712480364e-50 |
|
|
2.17820388072902e+47 |
|
|
2.17820388072902e+47 |
|
|
0.00012340980408668 |
|
|
0.00012340980408668 |
|
|
5.03457535876498e-45 |
|
|
5.03457535876498e-45 |
|
|
8103.08392757538 |
|
|
8103.08392757538 |
|
|
4.48961281917435e+38 |
|
|
4.48961281917435e+38 |
|
|
1.08063927770728e-30 |
|
|
1.08063927770728e-30 |
|
|
22026.4657948067 |
|
|
22026.4657948067 |
|
|
6.9144001069402e-13 |
|
|
6.9144001069402e-13 |
|
|
1.36853947117385e-44 |
|
|
1.36853947117385e-44 |
|
|
26489122129.8435 |
|
|
26489122129.8435 |
|
|
1.33833471920427e+42 |
|
|
1.33833471920427e+42 |
|
|
5.26144118266639e+54 |
|
|
5.26144118266639e+54 |
|
|
22026.4657948067 |
|
|
22026.4657948067 |
|
|
1.7392749415205e+18 |
|
|
1.7392749415205e+18 |
|
|
485165195.40979 |
|
|
485165195.40979 |
|
|
6.8135568215453e-46 |
|
|
6.8135568215453e-46 |
|
|
162754.791419004 |
|
|
162754.791419004 |
|
|
2.17052201130364e-29 |
|
|
2.17052201130364e-29 |
|
|
|
|
taos> select ln(tinyint_col) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
ln(tinyint_col) |
|
|
============================
|
|
4.38202663467388 |
|
|
4.38202663467388 |
|
|
3.78418963391826 |
|
|
3.78418963391826 |
|
|
NULL |
|
|
NULL |
|
|
3.2188758248682 |
|
|
3.2188758248682 |
|
|
4.24849524204936 |
|
|
4.24849524204936 |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
4.69134788222914 |
|
|
4.69134788222914 |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
2.19722457733622 |
|
|
2.19722457733622 |
|
|
4.48863636973214 |
|
|
4.48863636973214 |
|
|
NULL |
|
|
NULL |
|
|
2.30258509299405 |
|
|
2.30258509299405 |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
3.17805383034795 |
|
|
3.17805383034795 |
|
|
4.57471097850338 |
|
|
4.57471097850338 |
|
|
4.83628190695148 |
|
|
4.83628190695148 |
|
|
2.30258509299405 |
|
|
2.30258509299405 |
|
|
3.73766961828337 |
|
|
3.73766961828337 |
|
|
2.99573227355399 |
|
|
2.99573227355399 |
|
|
NULL |
|
|
NULL |
|
|
2.484906649788 |
|
|
2.484906649788 |
|
|
NULL |
|
|
NULL |
|
|
|
|
taos> select mod(tinyint_col, 10) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
mod(tinyint_col, 10) |
|
|
============================
|
|
0 |
|
|
0 |
|
|
4 |
|
|
4 |
|
|
-1 |
|
|
-1 |
|
|
5 |
|
|
5 |
|
|
0 |
|
|
0 |
|
|
-6 |
|
|
-6 |
|
|
-3 |
|
|
-3 |
|
|
9 |
|
|
9 |
|
|
-9 |
|
|
-9 |
|
|
-2 |
|
|
-2 |
|
|
9 |
|
|
9 |
|
|
9 |
|
|
9 |
|
|
-9 |
|
|
-9 |
|
|
0 |
|
|
0 |
|
|
-8 |
|
|
-8 |
|
|
-1 |
|
|
-1 |
|
|
4 |
|
|
4 |
|
|
7 |
|
|
7 |
|
|
6 |
|
|
6 |
|
|
0 |
|
|
0 |
|
|
2 |
|
|
2 |
|
|
0 |
|
|
0 |
|
|
-4 |
|
|
-4 |
|
|
2 |
|
|
2 |
|
|
-6 |
|
|
-6 |
|
|
|
|
taos> select sign(tinyint_col) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
sign(tinyint_col) |
|
|
====================
|
|
1 |
|
|
1 |
|
|
1 |
|
|
1 |
|
|
-1 |
|
|
-1 |
|
|
1 |
|
|
1 |
|
|
1 |
|
|
1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
1 |
|
|
1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
1 |
|
|
1 |
|
|
1 |
|
|
1 |
|
|
-1 |
|
|
-1 |
|
|
1 |
|
|
1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
1 |
|
|
1 |
|
|
1 |
|
|
1 |
|
|
1 |
|
|
1 |
|
|
1 |
|
|
1 |
|
|
1 |
|
|
1 |
|
|
1 |
|
|
1 |
|
|
-1 |
|
|
-1 |
|
|
1 |
|
|
1 |
|
|
-1 |
|
|
-1 |
|
|
|
|
taos> select degrees(u_tinyint_col) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
degrees(u_tinyint_col) |
|
|
============================
|
|
1661.57760587939 |
|
|
1661.57760587939 |
|
|
1661.57760587939 |
|
|
9052.73316306701 |
|
|
9052.73316306701 |
|
|
9052.73316306701 |
|
|
57.2957795130823 |
|
|
57.2957795130823 |
|
|
57.2957795130823 |
|
|
2807.49319614103 |
|
|
2807.49319614103 |
|
|
2807.49319614103 |
|
|
4239.88768396809 |
|
|
4239.88768396809 |
|
|
4239.88768396809 |
|
|
630.253574643906 |
|
|
630.253574643906 |
|
|
630.253574643906 |
|
|
4411.77502250734 |
|
|
4411.77502250734 |
|
|
4411.77502250734 |
|
|
3609.63410932419 |
|
|
3609.63410932419 |
|
|
3609.63410932419 |
|
|
13120.7335084959 |
|
|
13120.7335084959 |
|
|
13120.7335084959 |
|
|
11172.6770050511 |
|
|
11172.6770050511 |
|
|
11172.6770050511 |
|
|
1432.39448782706 |
|
|
1432.39448782706 |
|
|
1432.39448782706 |
|
|
10427.831871381 |
|
|
10427.831871381 |
|
|
10427.831871381 |
|
|
11344.5643435903 |
|
|
11344.5643435903 |
|
|
11344.5643435903 |
|
|
10714.3107689464 |
|
|
10714.3107689464 |
|
|
10714.3107689464 |
|
|
5443.09905374282 |
|
|
5443.09905374282 |
|
|
5443.09905374282 |
|
|
9281.91628111934 |
|
|
9281.91628111934 |
|
|
9281.91628111934 |
|
|
3380.45099127186 |
|
|
3380.45099127186 |
|
|
|
|
taos> select radians(u_tinyint_col) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
radians(u_tinyint_col) |
|
|
============================
|
|
0.506145483078356 |
|
|
0.506145483078356 |
|
|
0.506145483078356 |
|
|
2.75762021815104 |
|
|
2.75762021815104 |
|
|
2.75762021815104 |
|
|
0.0174532925199433 |
|
|
0.0174532925199433 |
|
|
0.0174532925199433 |
|
|
0.855211333477221 |
|
|
0.855211333477221 |
|
|
0.855211333477221 |
|
|
1.2915436464758 |
|
|
1.2915436464758 |
|
|
1.2915436464758 |
|
|
0.191986217719376 |
|
|
0.191986217719376 |
|
|
0.191986217719376 |
|
|
1.34390352403563 |
|
|
1.34390352403563 |
|
|
1.34390352403563 |
|
|
1.09955742875643 |
|
|
1.09955742875643 |
|
|
1.09955742875643 |
|
|
3.99680398706701 |
|
|
3.99680398706701 |
|
|
3.99680398706701 |
|
|
3.40339204138894 |
|
|
3.40339204138894 |
|
|
3.40339204138894 |
|
|
0.436332312998582 |
|
|
0.436332312998582 |
|
|
0.436332312998582 |
|
|
3.17649923862968 |
|
|
3.17649923862968 |
|
|
3.17649923862968 |
|
|
3.45575191894877 |
|
|
3.45575191894877 |
|
|
3.45575191894877 |
|
|
3.2637657012294 |
|
|
3.2637657012294 |
|
|
3.2637657012294 |
|
|
1.65806278939461 |
|
|
1.65806278939461 |
|
|
1.65806278939461 |
|
|
2.82743338823081 |
|
|
2.82743338823081 |
|
|
2.82743338823081 |
|
|
1.02974425867665 |
|
|
1.02974425867665 |
|
|
|
|
taos> select char_length(binary_16_col) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
char_length(binary_16_col) |
|
|
=============================
|
|
9 |
|
|
9 |
|
|
11 |
|
|
11 |
|
|
10 |
|
|
10 |
|
|
9 |
|
|
9 |
|
|
9 |
|
|
9 |
|
|
13 |
|
|
13 |
|
|
13 |
|
|
13 |
|
|
8 |
|
|
8 |
|
|
9 |
|
|
9 |
|
|
10 |
|
|
10 |
|
|
9 |
|
|
9 |
|
|
10 |
|
|
10 |
|
|
13 |
|
|
13 |
|
|
13 |
|
|
13 |
|
|
8 |
|
|
8 |
|
|
9 |
|
|
9 |
|
|
13 |
|
|
13 |
|
|
9 |
|
|
9 |
|
|
11 |
|
|
11 |
|
|
8 |
|
|
8 |
|
|
9 |
|
|
9 |
|
|
9 |
|
|
9 |
|
|
9 |
|
|
9 |
|
|
9 |
|
|
9 |
|
|
10 |
|
|
10 |
|
|
|
|
taos> select concat(binary_16_col, binary_32_col) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
concat(binary_16_col, binary_32_col) |
|
|
=======================================
|
|
San DiegoShanghai - Los Angles |
|
|
NULL |
|
|
San DiegoShanghai - Los Angles |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
Los AnglesHarbin - Campbell |
|
|
NULL |
|
|
Los AnglesHarbin - Campbell |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
CupertinoHarbin - Campbell |
|
|
NULL |
|
|
CupertinoHarbin - Campbell |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
|
|
taos> select concat_ws(' ', binary_16_col, binary_32_col) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
concat_ws(' ', binary_16_col, binary_32_col) |
|
|
===============================================
|
|
San Diego Shanghai - Los Angles |
|
|
NULL |
|
|
San Diego Shanghai - Los Angles |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
Los Angles Harbin - Campbell |
|
|
NULL |
|
|
Los Angles Harbin - Campbell |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
Cupertino Harbin - Campbell |
|
|
NULL |
|
|
Cupertino Harbin - Campbell |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
|
|
taos> select length(binary_16_col) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
length(binary_16_col) |
|
|
========================
|
|
9 |
|
|
9 |
|
|
11 |
|
|
11 |
|
|
10 |
|
|
10 |
|
|
9 |
|
|
9 |
|
|
9 |
|
|
9 |
|
|
13 |
|
|
13 |
|
|
13 |
|
|
13 |
|
|
8 |
|
|
8 |
|
|
9 |
|
|
9 |
|
|
10 |
|
|
10 |
|
|
9 |
|
|
9 |
|
|
10 |
|
|
10 |
|
|
13 |
|
|
13 |
|
|
13 |
|
|
13 |
|
|
8 |
|
|
8 |
|
|
9 |
|
|
9 |
|
|
13 |
|
|
13 |
|
|
9 |
|
|
9 |
|
|
11 |
|
|
11 |
|
|
8 |
|
|
8 |
|
|
9 |
|
|
9 |
|
|
9 |
|
|
9 |
|
|
9 |
|
|
9 |
|
|
9 |
|
|
9 |
|
|
10 |
|
|
10 |
|
|
|
|
taos> select lower(binary_32_col) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
lower(binary_32_col) |
|
|
=================================
|
|
shanghai - los angles |
|
|
shanghai - los angles |
|
|
shanghai - los angles |
|
|
xian - sunnyvale |
|
|
xian - sunnyvale |
|
|
xian - sunnyvale |
|
|
taiyuan - santa clara |
|
|
taiyuan - santa clara |
|
|
taiyuan - santa clara |
|
|
shanghai - los angles |
|
|
shanghai - los angles |
|
|
shanghai - los angles |
|
|
shanghai - los angles |
|
|
shanghai - los angles |
|
|
shanghai - los angles |
|
|
harbin - campbell |
|
|
harbin - campbell |
|
|
harbin - campbell |
|
|
shanghai - los angles |
|
|
shanghai - los angles |
|
|
shanghai - los angles |
|
|
hong kong - palo alto |
|
|
hong kong - palo alto |
|
|
hong kong - palo alto |
|
|
chengdu - san jose |
|
|
chengdu - san jose |
|
|
chengdu - san jose |
|
|
beijing - san francisco |
|
|
beijing - san francisco |
|
|
beijing - san francisco |
|
|
harbin - campbell |
|
|
harbin - campbell |
|
|
harbin - campbell |
|
|
hong kong - palo alto |
|
|
hong kong - palo alto |
|
|
hong kong - palo alto |
|
|
xian - sunnyvale |
|
|
xian - sunnyvale |
|
|
xian - sunnyvale |
|
|
shanghai - los angles |
|
|
shanghai - los angles |
|
|
shanghai - los angles |
|
|
hong kong - palo alto |
|
|
hong kong - palo alto |
|
|
hong kong - palo alto |
|
|
xian - sunnyvale |
|
|
xian - sunnyvale |
|
|
xian - sunnyvale |
|
|
hong kong - palo alto |
|
|
hong kong - palo alto |
|
|
|
|
taos> select upper(binary_32_col) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
upper(binary_32_col) |
|
|
=================================
|
|
SHANGHAI - LOS ANGLES |
|
|
SHANGHAI - LOS ANGLES |
|
|
SHANGHAI - LOS ANGLES |
|
|
XIAN - SUNNYVALE |
|
|
XIAN - SUNNYVALE |
|
|
XIAN - SUNNYVALE |
|
|
TAIYUAN - SANTA CLARA |
|
|
TAIYUAN - SANTA CLARA |
|
|
TAIYUAN - SANTA CLARA |
|
|
SHANGHAI - LOS ANGLES |
|
|
SHANGHAI - LOS ANGLES |
|
|
SHANGHAI - LOS ANGLES |
|
|
SHANGHAI - LOS ANGLES |
|
|
SHANGHAI - LOS ANGLES |
|
|
SHANGHAI - LOS ANGLES |
|
|
HARBIN - CAMPBELL |
|
|
HARBIN - CAMPBELL |
|
|
HARBIN - CAMPBELL |
|
|
SHANGHAI - LOS ANGLES |
|
|
SHANGHAI - LOS ANGLES |
|
|
SHANGHAI - LOS ANGLES |
|
|
HONG KONG - PALO ALTO |
|
|
HONG KONG - PALO ALTO |
|
|
HONG KONG - PALO ALTO |
|
|
CHENGDU - SAN JOSE |
|
|
CHENGDU - SAN JOSE |
|
|
CHENGDU - SAN JOSE |
|
|
BEIJING - SAN FRANCISCO |
|
|
BEIJING - SAN FRANCISCO |
|
|
BEIJING - SAN FRANCISCO |
|
|
HARBIN - CAMPBELL |
|
|
HARBIN - CAMPBELL |
|
|
HARBIN - CAMPBELL |
|
|
HONG KONG - PALO ALTO |
|
|
HONG KONG - PALO ALTO |
|
|
HONG KONG - PALO ALTO |
|
|
XIAN - SUNNYVALE |
|
|
XIAN - SUNNYVALE |
|
|
XIAN - SUNNYVALE |
|
|
SHANGHAI - LOS ANGLES |
|
|
SHANGHAI - LOS ANGLES |
|
|
SHANGHAI - LOS ANGLES |
|
|
HONG KONG - PALO ALTO |
|
|
HONG KONG - PALO ALTO |
|
|
HONG KONG - PALO ALTO |
|
|
XIAN - SUNNYVALE |
|
|
XIAN - SUNNYVALE |
|
|
XIAN - SUNNYVALE |
|
|
HONG KONG - PALO ALTO |
|
|
HONG KONG - PALO ALTO |
|
|
|
|
taos> select ltrim(binary_32_col) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
ltrim(binary_32_col) |
|
|
=================================
|
|
Shanghai - Los Angles |
|
|
Shanghai - Los Angles |
|
|
Shanghai - Los Angles |
|
|
Xian - Sunnyvale |
|
|
Xian - Sunnyvale |
|
|
Xian - Sunnyvale |
|
|
Taiyuan - Santa Clara |
|
|
Taiyuan - Santa Clara |
|
|
Taiyuan - Santa Clara |
|
|
Shanghai - Los Angles |
|
|
Shanghai - Los Angles |
|
|
Shanghai - Los Angles |
|
|
Shanghai - Los Angles |
|
|
Shanghai - Los Angles |
|
|
Shanghai - Los Angles |
|
|
Harbin - Campbell |
|
|
Harbin - Campbell |
|
|
Harbin - Campbell |
|
|
Shanghai - Los Angles |
|
|
Shanghai - Los Angles |
|
|
Shanghai - Los Angles |
|
|
Hong Kong - Palo Alto |
|
|
Hong Kong - Palo Alto |
|
|
Hong Kong - Palo Alto |
|
|
Chengdu - San Jose |
|
|
Chengdu - San Jose |
|
|
Chengdu - San Jose |
|
|
Beijing - San Francisco |
|
|
Beijing - San Francisco |
|
|
Beijing - San Francisco |
|
|
Harbin - Campbell |
|
|
Harbin - Campbell |
|
|
Harbin - Campbell |
|
|
Hong Kong - Palo Alto |
|
|
Hong Kong - Palo Alto |
|
|
Hong Kong - Palo Alto |
|
|
Xian - Sunnyvale |
|
|
Xian - Sunnyvale |
|
|
Xian - Sunnyvale |
|
|
Shanghai - Los Angles |
|
|
Shanghai - Los Angles |
|
|
Shanghai - Los Angles |
|
|
Hong Kong - Palo Alto |
|
|
Hong Kong - Palo Alto |
|
|
Hong Kong - Palo Alto |
|
|
Xian - Sunnyvale |
|
|
Xian - Sunnyvale |
|
|
Xian - Sunnyvale |
|
|
Hong Kong - Palo Alto |
|
|
Hong Kong - Palo Alto |
|
|
|
|
taos> select rtrim(binary_32_col) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
rtrim(binary_32_col) |
|
|
=================================
|
|
Shanghai - Los Angles |
|
|
Shanghai - Los Angles |
|
|
Shanghai - Los Angles |
|
|
Xian - Sunnyvale |
|
|
Xian - Sunnyvale |
|
|
Xian - Sunnyvale |
|
|
Taiyuan - Santa Clara |
|
|
Taiyuan - Santa Clara |
|
|
Taiyuan - Santa Clara |
|
|
Shanghai - Los Angles |
|
|
Shanghai - Los Angles |
|
|
Shanghai - Los Angles |
|
|
Shanghai - Los Angles |
|
|
Shanghai - Los Angles |
|
|
Shanghai - Los Angles |
|
|
Harbin - Campbell |
|
|
Harbin - Campbell |
|
|
Harbin - Campbell |
|
|
Shanghai - Los Angles |
|
|
Shanghai - Los Angles |
|
|
Shanghai - Los Angles |
|
|
Hong Kong - Palo Alto |
|
|
Hong Kong - Palo Alto |
|
|
Hong Kong - Palo Alto |
|
|
Chengdu - San Jose |
|
|
Chengdu - San Jose |
|
|
Chengdu - San Jose |
|
|
Beijing - San Francisco |
|
|
Beijing - San Francisco |
|
|
Beijing - San Francisco |
|
|
Harbin - Campbell |
|
|
Harbin - Campbell |
|
|
Harbin - Campbell |
|
|
Hong Kong - Palo Alto |
|
|
Hong Kong - Palo Alto |
|
|
Hong Kong - Palo Alto |
|
|
Xian - Sunnyvale |
|
|
Xian - Sunnyvale |
|
|
Xian - Sunnyvale |
|
|
Shanghai - Los Angles |
|
|
Shanghai - Los Angles |
|
|
Shanghai - Los Angles |
|
|
Hong Kong - Palo Alto |
|
|
Hong Kong - Palo Alto |
|
|
Hong Kong - Palo Alto |
|
|
Xian - Sunnyvale |
|
|
Xian - Sunnyvale |
|
|
Xian - Sunnyvale |
|
|
Hong Kong - Palo Alto |
|
|
Hong Kong - Palo Alto |
|
|
|
|
taos> select substring(nchar_32_col, 1, 5) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
substring(nchar_32_col, 1, 5) |
|
|
=================================
|
|
圣克拉拉 |
|
|
圣克拉拉 |
|
|
圣克拉拉 |
|
|
森尼韦尔 |
|
|
森尼韦尔 |
|
|
森尼韦尔 |
|
|
山景城 - |
|
|
山景城 - |
|
|
山景城 - |
|
|
帕洛阿托 |
|
|
帕洛阿托 |
|
|
帕洛阿托 |
|
|
坎贝尔 - |
|
|
坎贝尔 - |
|
|
坎贝尔 - |
|
|
山景城 - |
|
|
山景城 - |
|
|
山景城 - |
|
|
圣克拉拉 |
|
|
圣克拉拉 |
|
|
圣克拉拉 |
|
|
山景城 - |
|
|
山景城 - |
|
|
山景城 - |
|
|
洛杉矶 - |
|
|
洛杉矶 - |
|
|
洛杉矶 - |
|
|
圣克拉拉 |
|
|
圣克拉拉 |
|
|
圣克拉拉 |
|
|
山景城 - |
|
|
山景城 - |
|
|
山景城 - |
|
|
圣何塞 - |
|
|
圣何塞 - |
|
|
圣何塞 - |
|
|
库比蒂诺 |
|
|
库比蒂诺 |
|
|
库比蒂诺 |
|
|
森尼韦尔 |
|
|
森尼韦尔 |
|
|
森尼韦尔 |
|
|
旧金山 - |
|
|
旧金山 - |
|
|
旧金山 - |
|
|
库比蒂诺 |
|
|
库比蒂诺 |
|
|
库比蒂诺 |
|
|
山景城 - |
|
|
山景城 - |
|
|
|
|
taos> select substring_index(nchar_32_col, ' ', 1) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
substring_index(nchar_32_col, ' ', 1) |
|
|
========================================
|
|
圣克拉拉 |
|
|
圣克拉拉 |
|
|
圣克拉拉 |
|
|
森尼韦尔 |
|
|
森尼韦尔 |
|
|
森尼韦尔 |
|
|
山景城 |
|
|
山景城 |
|
|
山景城 |
|
|
帕洛阿托 |
|
|
帕洛阿托 |
|
|
帕洛阿托 |
|
|
坎贝尔 |
|
|
坎贝尔 |
|
|
坎贝尔 |
|
|
山景城 |
|
|
山景城 |
|
|
山景城 |
|
|
圣克拉拉 |
|
|
圣克拉拉 |
|
|
圣克拉拉 |
|
|
山景城 |
|
|
山景城 |
|
|
山景城 |
|
|
洛杉矶 |
|
|
洛杉矶 |
|
|
洛杉矶 |
|
|
圣克拉拉 |
|
|
圣克拉拉 |
|
|
圣克拉拉 |
|
|
山景城 |
|
|
山景城 |
|
|
山景城 |
|
|
圣何塞 |
|
|
圣何塞 |
|
|
圣何塞 |
|
|
库比蒂诺 |
|
|
库比蒂诺 |
|
|
库比蒂诺 |
|
|
森尼韦尔 |
|
|
森尼韦尔 |
|
|
森尼韦尔 |
|
|
旧金山 |
|
|
旧金山 |
|
|
旧金山 |
|
|
库比蒂诺 |
|
|
库比蒂诺 |
|
|
库比蒂诺 |
|
|
山景城 |
|
|
山景城 |
|
|
|
|
taos> select char(u_tinyint_col) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
char(u_tinyint_col) |
|
|
======================
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
|
1 |
|
|
1 |
|
|
J |
|
|
J |
|
|
J |
|
|
|
|
|
|
|
|
|
|
|
M |
|
|
M |
|
|
M |
|
|
? |
|
|
? |
|
|
? |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_ |
|
|
_ |
|
|
_ |
|
|
|
|
|
|
|
|
|
|
|
; |
|
|
; |
|
|
|
|
taos> select ascii(binary_32_col) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
ascii(binary_32_col) |
|
|
=======================
|
|
83 |
|
|
83 |
|
|
83 |
|
|
88 |
|
|
88 |
|
|
88 |
|
|
84 |
|
|
84 |
|
|
84 |
|
|
83 |
|
|
83 |
|
|
83 |
|
|
83 |
|
|
83 |
|
|
83 |
|
|
72 |
|
|
72 |
|
|
72 |
|
|
83 |
|
|
83 |
|
|
83 |
|
|
72 |
|
|
72 |
|
|
72 |
|
|
67 |
|
|
67 |
|
|
67 |
|
|
66 |
|
|
66 |
|
|
66 |
|
|
72 |
|
|
72 |
|
|
72 |
|
|
72 |
|
|
72 |
|
|
72 |
|
|
88 |
|
|
88 |
|
|
88 |
|
|
83 |
|
|
83 |
|
|
83 |
|
|
72 |
|
|
72 |
|
|
72 |
|
|
88 |
|
|
88 |
|
|
88 |
|
|
72 |
|
|
72 |
|
|
|
|
taos> select position(' ' IN binary_32_col) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
position(' ' in binary_32_col) |
|
|
=================================
|
|
9 |
|
|
9 |
|
|
9 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
8 |
|
|
8 |
|
|
8 |
|
|
9 |
|
|
9 |
|
|
9 |
|
|
9 |
|
|
9 |
|
|
9 |
|
|
7 |
|
|
7 |
|
|
7 |
|
|
9 |
|
|
9 |
|
|
9 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
8 |
|
|
8 |
|
|
8 |
|
|
8 |
|
|
8 |
|
|
8 |
|
|
7 |
|
|
7 |
|
|
7 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
9 |
|
|
9 |
|
|
9 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
|
|
taos> select repeat(binary_32_col, 2) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
repeat(binary_32_col, 2) |
|
|
=================================
|
|
Shanghai - Los AnglesShangh... |
|
|
Shanghai - Los AnglesShangh... |
|
|
Shanghai - Los AnglesShangh... |
|
|
Xian - SunnyvaleXian - Sunn... |
|
|
Xian - SunnyvaleXian - Sunn... |
|
|
Xian - SunnyvaleXian - Sunn... |
|
|
Taiyuan - Santa ClaraTaiyua... |
|
|
Taiyuan - Santa ClaraTaiyua... |
|
|
Taiyuan - Santa ClaraTaiyua... |
|
|
Shanghai - Los AnglesShangh... |
|
|
Shanghai - Los AnglesShangh... |
|
|
Shanghai - Los AnglesShangh... |
|
|
Shanghai - Los AnglesShangh... |
|
|
Shanghai - Los AnglesShangh... |
|
|
Shanghai - Los AnglesShangh... |
|
|
Harbin - CampbellHarbin - C... |
|
|
Harbin - CampbellHarbin - C... |
|
|
Harbin - CampbellHarbin - C... |
|
|
Shanghai - Los AnglesShangh... |
|
|
Shanghai - Los AnglesShangh... |
|
|
Shanghai - Los AnglesShangh... |
|
|
Hong Kong - Palo AltoHong K... |
|
|
Hong Kong - Palo AltoHong K... |
|
|
Hong Kong - Palo AltoHong K... |
|
|
Chengdu - San JoseChengdu -... |
|
|
Chengdu - San JoseChengdu -... |
|
|
Chengdu - San JoseChengdu -... |
|
|
Beijing - San FranciscoBeij... |
|
|
Beijing - San FranciscoBeij... |
|
|
Beijing - San FranciscoBeij... |
|
|
Harbin - CampbellHarbin - C... |
|
|
Harbin - CampbellHarbin - C... |
|
|
Harbin - CampbellHarbin - C... |
|
|
Hong Kong - Palo AltoHong K... |
|
|
Hong Kong - Palo AltoHong K... |
|
|
Hong Kong - Palo AltoHong K... |
|
|
Xian - SunnyvaleXian - Sunn... |
|
|
Xian - SunnyvaleXian - Sunn... |
|
|
Xian - SunnyvaleXian - Sunn... |
|
|
Shanghai - Los AnglesShangh... |
|
|
Shanghai - Los AnglesShangh... |
|
|
Shanghai - Los AnglesShangh... |
|
|
Hong Kong - Palo AltoHong K... |
|
|
Hong Kong - Palo AltoHong K... |
|
|
Hong Kong - Palo AltoHong K... |
|
|
Xian - SunnyvaleXian - Sunn... |
|
|
Xian - SunnyvaleXian - Sunn... |
|
|
Xian - SunnyvaleXian - Sunn... |
|
|
Hong Kong - Palo AltoHong K... |
|
|
Hong Kong - Palo AltoHong K... |
|
|
|
|
taos> select replace(binary_32_col, ' ', '_') from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
replace(binary_32_col, ' ', '_') |
|
|
===================================
|
|
Shanghai_-_Los_Angles |
|
|
Shanghai_-_Los_Angles |
|
|
Shanghai_-_Los_Angles |
|
|
Xian_-_Sunnyvale |
|
|
Xian_-_Sunnyvale |
|
|
Xian_-_Sunnyvale |
|
|
Taiyuan_-_Santa_Clara |
|
|
Taiyuan_-_Santa_Clara |
|
|
Taiyuan_-_Santa_Clara |
|
|
Shanghai_-_Los_Angles |
|
|
Shanghai_-_Los_Angles |
|
|
Shanghai_-_Los_Angles |
|
|
Shanghai_-_Los_Angles |
|
|
Shanghai_-_Los_Angles |
|
|
Shanghai_-_Los_Angles |
|
|
Harbin_-_Campbell |
|
|
Harbin_-_Campbell |
|
|
Harbin_-_Campbell |
|
|
Shanghai_-_Los_Angles |
|
|
Shanghai_-_Los_Angles |
|
|
Shanghai_-_Los_Angles |
|
|
Hong_Kong_-_Palo_Alto |
|
|
Hong_Kong_-_Palo_Alto |
|
|
Hong_Kong_-_Palo_Alto |
|
|
Chengdu_-_San_Jose |
|
|
Chengdu_-_San_Jose |
|
|
Chengdu_-_San_Jose |
|
|
Beijing_-_San_Francisco |
|
|
Beijing_-_San_Francisco |
|
|
Beijing_-_San_Francisco |
|
|
Harbin_-_Campbell |
|
|
Harbin_-_Campbell |
|
|
Harbin_-_Campbell |
|
|
Hong_Kong_-_Palo_Alto |
|
|
Hong_Kong_-_Palo_Alto |
|
|
Hong_Kong_-_Palo_Alto |
|
|
Xian_-_Sunnyvale |
|
|
Xian_-_Sunnyvale |
|
|
Xian_-_Sunnyvale |
|
|
Shanghai_-_Los_Angles |
|
|
Shanghai_-_Los_Angles |
|
|
Shanghai_-_Los_Angles |
|
|
Hong_Kong_-_Palo_Alto |
|
|
Hong_Kong_-_Palo_Alto |
|
|
Hong_Kong_-_Palo_Alto |
|
|
Xian_-_Sunnyvale |
|
|
Xian_-_Sunnyvale |
|
|
Xian_-_Sunnyvale |
|
|
Hong_Kong_-_Palo_Alto |
|
|
Hong_Kong_-_Palo_Alto |
|
|
|
|
taos> select cast(u_tinyint_col as nchar(16)) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
cast(u_tinyint_col as nchar(16)) |
|
|
===================================
|
|
29 |
|
|
29 |
|
|
29 |
|
|
158 |
|
|
158 |
|
|
158 |
|
|
1 |
|
|
1 |
|
|
1 |
|
|
49 |
|
|
49 |
|
|
49 |
|
|
74 |
|
|
74 |
|
|
74 |
|
|
11 |
|
|
11 |
|
|
11 |
|
|
77 |
|
|
77 |
|
|
77 |
|
|
63 |
|
|
63 |
|
|
63 |
|
|
229 |
|
|
229 |
|
|
229 |
|
|
195 |
|
|
195 |
|
|
195 |
|
|
25 |
|
|
25 |
|
|
25 |
|
|
182 |
|
|
182 |
|
|
182 |
|
|
198 |
|
|
198 |
|
|
198 |
|
|
187 |
|
|
187 |
|
|
187 |
|
|
95 |
|
|
95 |
|
|
95 |
|
|
162 |
|
|
162 |
|
|
162 |
|
|
59 |
|
|
59 |
|
|
|
|
taos> select to_ISO8601(ts) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
to_iso8601(ts) |
|
|
=================================
|
|
2020-10-01T00:00:00.000+0800 |
|
|
2020-10-01T00:00:00.000+0800 |
|
|
2020-10-01T00:00:00.000+0800 |
|
|
2020-10-01T00:00:00.002+0800 |
|
|
2020-10-01T00:00:00.002+0800 |
|
|
2020-10-01T00:00:00.002+0800 |
|
|
2020-10-01T00:00:00.003+0800 |
|
|
2020-10-01T00:00:00.003+0800 |
|
|
2020-10-01T00:00:00.003+0800 |
|
|
2020-10-01T00:00:00.004+0800 |
|
|
2020-10-01T00:00:00.004+0800 |
|
|
2020-10-01T00:00:00.004+0800 |
|
|
2020-10-01T00:00:00.005+0800 |
|
|
2020-10-01T00:00:00.005+0800 |
|
|
2020-10-01T00:00:00.005+0800 |
|
|
2020-10-01T00:00:00.006+0800 |
|
|
2020-10-01T00:00:00.006+0800 |
|
|
2020-10-01T00:00:00.006+0800 |
|
|
2020-10-01T00:00:00.008+0800 |
|
|
2020-10-01T00:00:00.008+0800 |
|
|
2020-10-01T00:00:00.008+0800 |
|
|
2020-10-01T00:00:00.009+0800 |
|
|
2020-10-01T00:00:00.009+0800 |
|
|
2020-10-01T00:00:00.009+0800 |
|
|
2020-10-01T00:00:00.010+0800 |
|
|
2020-10-01T00:00:00.010+0800 |
|
|
2020-10-01T00:00:00.010+0800 |
|
|
2020-10-01T00:00:00.012+0800 |
|
|
2020-10-01T00:00:00.012+0800 |
|
|
2020-10-01T00:00:00.012+0800 |
|
|
2020-10-01T00:00:00.014+0800 |
|
|
2020-10-01T00:00:00.014+0800 |
|
|
2020-10-01T00:00:00.014+0800 |
|
|
2020-10-01T00:00:00.015+0800 |
|
|
2020-10-01T00:00:00.015+0800 |
|
|
2020-10-01T00:00:00.015+0800 |
|
|
2020-10-01T00:00:00.016+0800 |
|
|
2020-10-01T00:00:00.016+0800 |
|
|
2020-10-01T00:00:00.016+0800 |
|
|
2020-10-01T00:00:00.018+0800 |
|
|
2020-10-01T00:00:00.018+0800 |
|
|
2020-10-01T00:00:00.018+0800 |
|
|
2020-10-01T00:00:00.020+0800 |
|
|
2020-10-01T00:00:00.020+0800 |
|
|
2020-10-01T00:00:00.020+0800 |
|
|
2020-10-01T00:00:00.021+0800 |
|
|
2020-10-01T00:00:00.021+0800 |
|
|
2020-10-01T00:00:00.021+0800 |
|
|
2020-10-01T00:00:00.022+0800 |
|
|
2020-10-01T00:00:00.022+0800 |
|
|
|
|
taos> select to_unixtimestamp(to_ISO8601(ts)) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
to_unixtimestamp(to_iso8601(ts)) |
|
|
===================================
|
|
1601481600000 |
|
|
1601481600000 |
|
|
1601481600000 |
|
|
1601481600002 |
|
|
1601481600002 |
|
|
1601481600002 |
|
|
1601481600003 |
|
|
1601481600003 |
|
|
1601481600003 |
|
|
1601481600004 |
|
|
1601481600004 |
|
|
1601481600004 |
|
|
1601481600005 |
|
|
1601481600005 |
|
|
1601481600005 |
|
|
1601481600006 |
|
|
1601481600006 |
|
|
1601481600006 |
|
|
1601481600008 |
|
|
1601481600008 |
|
|
1601481600008 |
|
|
1601481600009 |
|
|
1601481600009 |
|
|
1601481600009 |
|
|
1601481600010 |
|
|
1601481600010 |
|
|
1601481600010 |
|
|
1601481600012 |
|
|
1601481600012 |
|
|
1601481600012 |
|
|
1601481600014 |
|
|
1601481600014 |
|
|
1601481600014 |
|
|
1601481600015 |
|
|
1601481600015 |
|
|
1601481600015 |
|
|
1601481600016 |
|
|
1601481600016 |
|
|
1601481600016 |
|
|
1601481600018 |
|
|
1601481600018 |
|
|
1601481600018 |
|
|
1601481600020 |
|
|
1601481600020 |
|
|
1601481600020 |
|
|
1601481600021 |
|
|
1601481600021 |
|
|
1601481600021 |
|
|
1601481600022 |
|
|
1601481600022 |
|
|
|
|
taos> select to_char(ts, 'YYYY-MM-DD HH24:MI:SS') from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
to_char(ts, 'YYYY-MM-DD HH24:MI:SS') |
|
|
=======================================
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
|
|
taos> select timetruncate(ts, 1a) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
timetruncate(ts, 1a) |
|
|
==========================
|
|
2020-10-01 00:00:00.000 |
|
|
2020-10-01 00:00:00.000 |
|
|
2020-10-01 00:00:00.000 |
|
|
2020-10-01 00:00:00.002 |
|
|
2020-10-01 00:00:00.002 |
|
|
2020-10-01 00:00:00.002 |
|
|
2020-10-01 00:00:00.003 |
|
|
2020-10-01 00:00:00.003 |
|
|
2020-10-01 00:00:00.003 |
|
|
2020-10-01 00:00:00.004 |
|
|
2020-10-01 00:00:00.004 |
|
|
2020-10-01 00:00:00.004 |
|
|
2020-10-01 00:00:00.005 |
|
|
2020-10-01 00:00:00.005 |
|
|
2020-10-01 00:00:00.005 |
|
|
2020-10-01 00:00:00.006 |
|
|
2020-10-01 00:00:00.006 |
|
|
2020-10-01 00:00:00.006 |
|
|
2020-10-01 00:00:00.008 |
|
|
2020-10-01 00:00:00.008 |
|
|
2020-10-01 00:00:00.008 |
|
|
2020-10-01 00:00:00.009 |
|
|
2020-10-01 00:00:00.009 |
|
|
2020-10-01 00:00:00.009 |
|
|
2020-10-01 00:00:00.010 |
|
|
2020-10-01 00:00:00.010 |
|
|
2020-10-01 00:00:00.010 |
|
|
2020-10-01 00:00:00.012 |
|
|
2020-10-01 00:00:00.012 |
|
|
2020-10-01 00:00:00.012 |
|
|
2020-10-01 00:00:00.014 |
|
|
2020-10-01 00:00:00.014 |
|
|
2020-10-01 00:00:00.014 |
|
|
2020-10-01 00:00:00.015 |
|
|
2020-10-01 00:00:00.015 |
|
|
2020-10-01 00:00:00.015 |
|
|
2020-10-01 00:00:00.016 |
|
|
2020-10-01 00:00:00.016 |
|
|
2020-10-01 00:00:00.016 |
|
|
2020-10-01 00:00:00.018 |
|
|
2020-10-01 00:00:00.018 |
|
|
2020-10-01 00:00:00.018 |
|
|
2020-10-01 00:00:00.020 |
|
|
2020-10-01 00:00:00.020 |
|
|
2020-10-01 00:00:00.020 |
|
|
2020-10-01 00:00:00.021 |
|
|
2020-10-01 00:00:00.021 |
|
|
2020-10-01 00:00:00.021 |
|
|
2020-10-01 00:00:00.022 |
|
|
2020-10-01 00:00:00.022 |
|
|
|
|
taos> select week(ts) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
week(ts) |
|
|
========================
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
|
|
taos> select dayofweek(ts) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
dayofweek(ts) |
|
|
========================
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
|
|
taos> select weekofyear(ts) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
weekofyear(ts) |
|
|
========================
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
|
|
taos> select weekday(ts) from test_vtable_select.vtb_virtual_stb order by ts, int_tag limit 50;
|
|
weekday(ts) |
|
|
========================
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
|
|
taos> select apercentile(int_col, 10) from test_vtable_select.vtb_virtual_stb limit 50;
|
|
apercentile(int_col, 10) |
|
|
============================
|
|
-862880276.76483 |
|
|
|
|
taos> select avg(int_col) from test_vtable_select.vtb_virtual_stb limit 50;
|
|
avg(int_col) |
|
|
============================
|
|
-146132.5514 |
|
|
|
|
taos> select count(int_col) from test_vtable_select.vtb_virtual_stb limit 50;
|
|
count(int_col) |
|
|
========================
|
|
30000 |
|
|
|
|
taos> select count(*) from test_vtable_select.vtb_virtual_stb limit 50;
|
|
count(*) |
|
|
========================
|
|
69999 |
|
|
|
|
taos> select elapsed(ts) from test_vtable_select.vtb_virtual_stb limit 50;
|
|
elapsed(ts) |
|
|
============================
|
|
49995 |
|
|
|
|
taos> select leastsquares(int_col, 0, 1) from test_vtable_select.vtb_virtual_stb limit 50;
|
|
leastsquares(int_col, 0, 1) |
|
|
=================================
|
|
{slop:76.198458, intercept:... |
|
|
|
|
taos> select spread(int_col) from test_vtable_select.vtb_virtual_stb limit 50;
|
|
spread(int_col) |
|
|
============================
|
|
2147266126 |
|
|
|
|
taos> select stddev(int_col) from test_vtable_select.vtb_virtual_stb limit 50;
|
|
stddev(int_col) |
|
|
============================
|
|
617825137.523304 |
|
|
|
|
taos> select sum(int_col) from test_vtable_select.vtb_virtual_stb limit 50;
|
|
sum(int_col) |
|
|
========================
|
|
-4383976542 |
|
|
|
|
taos> select var_pop(int_col) from test_vtable_select.vtb_virtual_stb limit 50;
|
|
var_pop(int_col) |
|
|
============================
|
|
3.8170790055569e+17 |
|
|
|
|
taos> select hyperloglog(int_col) from test_vtable_select.vtb_virtual_stb limit 50;
|
|
hyperloglog(int_col) |
|
|
========================
|
|
10099 |
|
|
|
|
taos> select percentile(int_col, 0.5) from test_vtable_select.vtb_virtual_stb limit 50;
|
|
taos> select bottom(int_col, 10) from test_vtable_select.vtb_virtual_stb order by 1 limit 50;
|
|
bottom(int_col, 10) |
|
|
======================
|
|
-1073538255 |
|
|
-1073538255 |
|
|
-1073538255 |
|
|
-1073265752 |
|
|
-1073265752 |
|
|
-1073265752 |
|
|
-1073119339 |
|
|
-1073119339 |
|
|
-1073119339 |
|
|
-1073057610 |
|
|
|
|
taos> select top(int_col, 10) from test_vtable_select.vtb_virtual_stb order by 1 limit 50;
|
|
top(int_col, 10) |
|
|
===================
|
|
1073266682 |
|
|
1073339832 |
|
|
1073339832 |
|
|
1073339832 |
|
|
1073443087 |
|
|
1073443087 |
|
|
1073443087 |
|
|
1073727871 |
|
|
1073727871 |
|
|
1073727871 |
|
|
|
|
taos> select first(int_col) from test_vtable_select.vtb_virtual_stb limit 50;
|
|
first(int_col) |
|
|
=================
|
|
-650873068 |
|
|
|
|
taos> select first(*) from test_vtable_select.vtb_virtual_stb limit 50;
|
|
first(ts) | first(u_tinyint_col) | first(u_smallint_col) | first(u_int_col) | first(u_bigint_col) | first(tinyint_col) | first(smallint_col) | first(int_col) | first(bigint_col) | first(float_col) | first(double_col) | first(bool_col) | first(binary_16_col) | first(binary_32_col) | first(nchar_16_col) | first(nchar_32_col) |
|
|
=======================================================================================================================================================================================================================================================================================================================================================================================================
|
|
2020-10-01 00:00:00.000 | 29 | 13238 | 432633471 | 1825145387 | 80 | 32519 | -650873068 | -9223372036854775808 | 99528.7 | 73495720.958304 | true | San Diego | Shanghai - Los Angles | 一。San Franc | 圣克拉拉 - Santa Clara |
|
|
|
|
taos> select interp(u_smallint_col) from test_vtable_select.vtb_virtual_stb where u_tinyint_col > 0 and u_int_col > 0 RANGE('2020-10-01 00:00:00.000', '2020-10-01 00:01:00.000') EVERY (2a) FILL(linear) limit 50;
|
|
interp(u_smallint_col) |
|
|
=========================
|
|
13238 |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
40009 |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
50802 |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
44549 |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
|
|
taos> select last(int_col) from test_vtable_select.vtb_virtual_stb limit 50;
|
|
last(int_col) |
|
|
================
|
|
1003732609 |
|
|
|
|
taos> select last(*) from test_vtable_select.vtb_virtual_stb limit 50;
|
|
last(ts) | last(u_tinyint_col) | last(u_smallint_col) | last(u_int_col) | last(u_bigint_col) | last(tinyint_col) | last(smallint_col) | last(int_col) | last(bigint_col) | last(float_col) | last(double_col) | last(bool_col) | last(binary_16_col) | last(binary_32_col) | last(nchar_16_col) | last(nchar_32_col) |
|
|
===============================================================================================================================================================================================================================================================================================================================================================================================
|
|
2020-10-01 00:00:49.995 | 51 | 10486 | 1812337397 | 896525845 | 6 | 8984 | 1003732609 | -9223372036854775808 | -68902.9 | -46321277.573751 | true | Santa Clara | Hangzhou - San Diego | 一。San Franc | 圣克拉拉 - Santa Clara |
|
|
|
|
taos> select last_row(int_col) from test_vtable_select.vtb_virtual_stb limit 50;
|
|
last_row(int_col) |
|
|
====================
|
|
1003732609 |
|
|
|
|
taos> select last_row(*) from test_vtable_select.vtb_virtual_stb limit 50;
|
|
last_row(ts) | last_row(u_tinyint_col) | last_row(u_smallint_col) | last_row(u_int_col) | last_row(u_bigint_col) | last_row(tinyint_col) | last_row(smallint_col) | last_row(int_col) | last_row(bigint_col) | last_row(float_col) | last_row(double_col) | last_row(bool_col) | last_row(binary_16_col) | last_row(binary_32_col) | last_row(nchar_16_col) | last_row(nchar_32_col) |
|
|
================================================================================================================================================================================================================================================================================================================================================================================================================================
|
|
2020-10-01 00:00:49.995 | NULL | NULL | 1812337397 | NULL | NULL | 8984 | NULL | NULL | -68902.9 | NULL | NULL | Santa Clara | NULL | NULL | 圣克拉拉 - Santa Clara |
|
|
|
|
taos> select max(int_col) from test_vtable_select.vtb_virtual_stb limit 50;
|
|
max(int_col) |
|
|
===============
|
|
1073727871 |
|
|
|
|
taos> select min(int_col) from test_vtable_select.vtb_virtual_stb limit 50;
|
|
min(int_col) |
|
|
===============
|
|
-1073538255 |
|
|
|
|
taos> select mode(int_col) from test_vtable_select.vtb_virtual_stb limit 50;
|
|
mode(int_col) |
|
|
================
|
|
402523350 |
|
|
|
|
taos> select tail(int_col, 20) from test_vtable_select.vtb_virtual_stb order by 1 limit 50;
|
|
tail(int_col, 20) |
|
|
====================
|
|
-678652052 |
|
|
-678652052 |
|
|
-507242214 |
|
|
-507242214 |
|
|
-507242214 |
|
|
-92851536 |
|
|
-92851536 |
|
|
-92851536 |
|
|
-81886338 |
|
|
-81886338 |
|
|
-81886338 |
|
|
344345959 |
|
|
344345959 |
|
|
344345959 |
|
|
754592313 |
|
|
754592313 |
|
|
754592313 |
|
|
1003732609 |
|
|
1003732609 |
|
|
1003732609 |
|
|
|
|
taos> select unique(u_tinyint_col) from test_vtable_select.vtb_virtual_stb order by 1 limit 50;
|
|
unique(u_tinyint_col) |
|
|
========================
|
|
0 |
|
|
1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
|
|
|
taos> select csum(u_tinyint_col) from test_vtable_select.vtb_virtual_stb order by 1 limit 50;
|
|
csum(u_tinyint_col) |
|
|
========================
|
|
29 |
|
|
187 |
|
|
188 |
|
|
237 |
|
|
311 |
|
|
322 |
|
|
399 |
|
|
462 |
|
|
691 |
|
|
886 |
|
|
911 |
|
|
1093 |
|
|
1291 |
|
|
1478 |
|
|
1573 |
|
|
1735 |
|
|
1794 |
|
|
1970 |
|
|
2043 |
|
|
2051 |
|
|
2068 |
|
|
2206 |
|
|
2218 |
|
|
2233 |
|
|
2319 |
|
|
2535 |
|
|
2602 |
|
|
2807 |
|
|
3045 |
|
|
3274 |
|
|
3320 |
|
|
3497 |
|
|
3650 |
|
|
3793 |
|
|
3951 |
|
|
4086 |
|
|
4293 |
|
|
4521 |
|
|
4597 |
|
|
4841 |
|
|
4846 |
|
|
4884 |
|
|
4976 |
|
|
5213 |
|
|
5396 |
|
|
5593 |
|
|
5690 |
|
|
5942 |
|
|
6009 |
|
|
6110 |
|
|
|
|
taos> select derivative(int_col, 5a, 1) from test_vtable_select.vtb_virtual_stb order by 1 limit 50;
|
|
derivative(int_col, 5a, 1) |
|
|
=============================
|
|
413692.788528853 |
|
|
413692.788528853 |
|
|
502252.5 |
|
|
502252.5 |
|
|
502252.5 |
|
|
1554762.5 |
|
|
1554762.5 |
|
|
1554762.5 |
|
|
3330812.5 |
|
|
3330812.5 |
|
|
3330812.5 |
|
|
4025927.5 |
|
|
4025927.5 |
|
|
4025927.5 |
|
|
4268035 |
|
|
4268035 |
|
|
4268035 |
|
|
6327150 |
|
|
6327150 |
|
|
6327150 |
|
|
6681302.5 |
|
|
6681302.5 |
|
|
6681302.5 |
|
|
6897532.5 |
|
|
6897532.5 |
|
|
6897532.5 |
|
|
7016550 |
|
|
7016550 |
|
|
7016550 |
|
|
7107420 |
|
|
7107420 |
|
|
7107420 |
|
|
8098285 |
|
|
8098285 |
|
|
8098285 |
|
|
9318320 |
|
|
9318320 |
|
|
9318320 |
|
|
9731017.5 |
|
|
9731017.5 |
|
|
9731017.5 |
|
|
10293622.5 |
|
|
10293622.5 |
|
|
10293622.5 |
|
|
10793777.5 |
|
|
10793777.5 |
|
|
10793777.5 |
|
|
12288850 |
|
|
12288850 |
|
|
12288850 |
|
|
|
|
taos> select diff(int_col) from test_vtable_select.vtb_virtual_stb order by 1 limit 50;
|
|
diff(int_col) |
|
|
========================
|
|
-2119505584 |
|
|
-2119505584 |
|
|
-2119505584 |
|
|
-2093539358 |
|
|
-2093539358 |
|
|
-2093539358 |
|
|
-2093490290 |
|
|
-2093490290 |
|
|
-2093490290 |
|
|
-2087332077 |
|
|
-2087332077 |
|
|
-2087332077 |
|
|
-2080162373 |
|
|
-2080162373 |
|
|
-2080162373 |
|
|
-2073348547 |
|
|
-2073348547 |
|
|
-2073348547 |
|
|
-2066202391 |
|
|
-2066202391 |
|
|
-2066202391 |
|
|
-2059214331 |
|
|
-2059214331 |
|
|
-2059214331 |
|
|
-2057474451 |
|
|
-2057474451 |
|
|
-2057474451 |
|
|
-2051881586 |
|
|
-2051881586 |
|
|
-2051881586 |
|
|
-2041924926 |
|
|
-2041924926 |
|
|
-2041924926 |
|
|
-2040449514 |
|
|
-2040449514 |
|
|
-2040449514 |
|
|
-2037970958 |
|
|
-2037970958 |
|
|
-2037970958 |
|
|
-2027498352 |
|
|
-2027498352 |
|
|
-2027498352 |
|
|
-2027272140 |
|
|
-2027272140 |
|
|
-2027272140 |
|
|
-2022729722 |
|
|
-2022729722 |
|
|
-2022729722 |
|
|
-2020737856 |
|
|
-2020737856 |
|
|
|
|
taos> select irate(int_col) from test_vtable_select.vtb_virtual_stb order by 1 limit 50;
|
|
taos> select mavg(int_col, 100) from test_vtable_select.vtb_virtual_stb order by 1 limit 50;
|
|
mavg(int_col, 100) |
|
|
============================
|
|
-183499859.91 |
|
|
-183499859.91 |
|
|
-183499859.91 |
|
|
-182615620.03 |
|
|
-182615620.03 |
|
|
-182615620.03 |
|
|
-178686397.82 |
|
|
-178686397.82 |
|
|
-178686397.82 |
|
|
-177020161.7 |
|
|
-177020161.7 |
|
|
-177020161.7 |
|
|
-175219422.29 |
|
|
-175219422.29 |
|
|
-175219422.29 |
|
|
-174887258.7 |
|
|
-174887258.7 |
|
|
-174887258.7 |
|
|
-174599821.33 |
|
|
-174599821.33 |
|
|
-174599821.33 |
|
|
-174377266.31 |
|
|
-174377266.31 |
|
|
-174377266.31 |
|
|
-173976274.2 |
|
|
-173976274.2 |
|
|
-173976274.2 |
|
|
-172740355.91 |
|
|
-172740355.91 |
|
|
-172740355.91 |
|
|
-172474450.66 |
|
|
-172474450.66 |
|
|
-172474450.66 |
|
|
-171486902.26 |
|
|
-171486902.26 |
|
|
-171486902.26 |
|
|
-171333819.65 |
|
|
-171333819.65 |
|
|
-171333819.65 |
|
|
-171156084.34 |
|
|
-171156084.34 |
|
|
-171156084.34 |
|
|
-170819158.09 |
|
|
-170819158.09 |
|
|
-170819158.09 |
|
|
-169561250.49 |
|
|
-169561250.49 |
|
|
-169561250.49 |
|
|
-164788453.03 |
|
|
-164788453.03 |
|
|
|
|
taos> select statecount(u_tinyint_col, "GT", 20) from test_vtable_select.vtb_virtual_stb order by 1 limit 50;
|
|
statecount(u_tinyint_col, "GT", 20) |
|
|
======================================
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
|
|
taos> select stateduration(u_tinyint_col, "GT", 20, 1a) from test_vtable_select.vtb_virtual_stb order by 1 limit 50;
|
|
stateduration(u_tinyint_col, "GT", 20, 1a) |
|
|
=============================================
|
|
-19998 |
|
|
-19998 |
|
|
-19996 |
|
|
-19996 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
|
|
taos> select twa(int_col) from test_vtable_select.vtb_virtual_stb limit 50;
|
|
twa(int_col) |
|
|
============================
|
|
-353350886.922845 |
|
|
|
|
taos> select abs(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
abs(int_tag) |
|
|
===============
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
|
|
taos> select acos(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
acos(int_tag) |
|
|
============================
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
|
|
taos> select asin(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
asin(int_tag) |
|
|
============================
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
|
|
taos> select atan(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
atan(int_tag) |
|
|
============================
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
|
|
taos> select ceil(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
ceil(int_tag) |
|
|
================
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
|
|
taos> select cos(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
cos(int_tag) |
|
|
============================
|
|
-0.989992496600445 |
|
|
-0.989992496600445 |
|
|
-0.989992496600445 |
|
|
-0.989992496600445 |
|
|
-0.989992496600445 |
|
|
|
|
taos> select floor(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
floor(int_tag) |
|
|
=================
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
|
|
taos> select log(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
log(int_tag) |
|
|
============================
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
|
|
taos> select pow(int_tag, 2) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
pow(int_tag, 2) |
|
|
============================
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
|
|
taos> select round(double_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
round(double_tag) |
|
|
============================
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
|
|
taos> select sin(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
sin(int_tag) |
|
|
============================
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
|
|
taos> select sqrt(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
sqrt(int_tag) |
|
|
============================
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
|
|
taos> select tan(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
tan(int_tag) |
|
|
============================
|
|
-0.142546543074278 |
|
|
-0.142546543074278 |
|
|
-0.142546543074278 |
|
|
-0.142546543074278 |
|
|
-0.142546543074278 |
|
|
|
|
taos> select PI() from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
|
|
taos> select PI(), u_tinyint_col from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
pi() | u_tinyint_col |
|
|
============================================
|
|
3.14159265358979 | 158 |
|
|
3.14159265358979 | 1 |
|
|
3.14159265358979 | 29 |
|
|
3.14159265358979 | 74 |
|
|
3.14159265358979 | 49 |
|
|
|
|
taos> select exp(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
exp(int_tag) |
|
|
============================
|
|
1 |
|
|
1 |
|
|
1 |
|
|
1 |
|
|
1 |
|
|
|
|
taos> select ln(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
ln(int_tag) |
|
|
============================
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
NULL |
|
|
|
|
taos> select mod(int_tag, 10) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
mod(int_tag, 10) |
|
|
============================
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
|
|
taos> select sign(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
sign(int_tag) |
|
|
================
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
|
|
taos> select degrees(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
degrees(int_tag) |
|
|
============================
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
|
|
taos> select radians(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
radians(int_tag) |
|
|
============================
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
|
|
taos> select char_length(binary_32_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
char_length(binary_32_tag) |
|
|
=============================
|
|
6 |
|
|
6 |
|
|
6 |
|
|
6 |
|
|
6 |
|
|
|
|
taos> select concat(binary_32_tag, binary_32_col) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
concat(binary_32_tag, binary_32_col) |
|
|
=======================================
|
|
child0Beijing - San Francisco |
|
|
child0Beijing - San Francisco |
|
|
child0Beijing - San Francisco |
|
|
child0Beijing - San Francisco |
|
|
child0Beijing - San Francisco |
|
|
|
|
taos> select concat_ws(' ', binary_32_tag, binary_32_col) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
concat_ws(' ', binary_32_tag, binary_32_col) |
|
|
===============================================
|
|
child0 Beijing - San Francisco |
|
|
child0 Beijing - San Francisco |
|
|
child0 Beijing - San Francisco |
|
|
child0 Beijing - San Francisco |
|
|
child0 Beijing - San Francisco |
|
|
|
|
taos> select length(binary_32_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
length(binary_32_tag) |
|
|
========================
|
|
6 |
|
|
6 |
|
|
6 |
|
|
6 |
|
|
6 |
|
|
|
|
taos> select lower(binary_32_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
lower(binary_32_tag) |
|
|
=================================
|
|
child0 |
|
|
child0 |
|
|
child0 |
|
|
child0 |
|
|
child0 |
|
|
|
|
taos> select upper(binary_32_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
upper(binary_32_tag) |
|
|
=================================
|
|
CHILD0 |
|
|
CHILD0 |
|
|
CHILD0 |
|
|
CHILD0 |
|
|
CHILD0 |
|
|
|
|
taos> select ltrim(binary_32_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
ltrim(binary_32_tag) |
|
|
=================================
|
|
child0 |
|
|
child0 |
|
|
child0 |
|
|
child0 |
|
|
child0 |
|
|
|
|
taos> select rtrim(binary_32_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
rtrim(binary_32_tag) |
|
|
=================================
|
|
child0 |
|
|
child0 |
|
|
child0 |
|
|
child0 |
|
|
child0 |
|
|
|
|
taos> select substring(nchar_32_tag, 1, 5) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
substring(nchar_32_tag, 1, 5) |
|
|
=================================
|
|
child |
|
|
child |
|
|
child |
|
|
child |
|
|
child |
|
|
|
|
taos> select substring_index(nchar_32_tag, ' ', 1) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
substring_index(nchar_32_tag, ' ', 1) |
|
|
========================================
|
|
child0 |
|
|
child0 |
|
|
child0 |
|
|
child0 |
|
|
child0 |
|
|
|
|
taos> select char(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
char(int_tag) |
|
|
================
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
taos> select ascii(binary_32_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
ascii(binary_32_tag) |
|
|
=======================
|
|
99 |
|
|
99 |
|
|
99 |
|
|
99 |
|
|
99 |
|
|
|
|
taos> select position(' ' IN binary_32_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
position(' ' in binary_32_tag) |
|
|
=================================
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
|
|
taos> select repeat(binary_32_tag, 2) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
repeat(binary_32_tag, 2) |
|
|
=================================
|
|
child0child0 |
|
|
child0child0 |
|
|
child0child0 |
|
|
child0child0 |
|
|
child0child0 |
|
|
|
|
taos> select replace(binary_32_tag, ' ', '_') from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
replace(binary_32_tag, ' ', '_') |
|
|
===================================
|
|
child0 |
|
|
child0 |
|
|
child0 |
|
|
child0 |
|
|
child0 |
|
|
|
|
taos> select cast(int_col as nchar(16)) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
cast(int_col as nchar(16)) |
|
|
=================================
|
|
-1000051566 |
|
|
-1000051566 |
|
|
-1000051566 |
|
|
-1000223871 |
|
|
-1000223871 |
|
|
|
|
taos> select to_ISO8601(ts) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
to_iso8601(ts) |
|
|
=================================
|
|
2020-10-01T00:00:00.000+0800 |
|
|
2020-10-01T00:00:00.000+0800 |
|
|
2020-10-01T00:00:00.000+0800 |
|
|
2020-10-01T00:00:00.002+0800 |
|
|
2020-10-01T00:00:00.002+0800 |
|
|
|
|
taos> select to_unixtimestamp(to_ISO8601(ts)) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
to_unixtimestamp(to_iso8601(ts)) |
|
|
===================================
|
|
1601481600000 |
|
|
1601481600000 |
|
|
1601481600000 |
|
|
1601481600002 |
|
|
1601481600002 |
|
|
|
|
taos> select to_char(ts, 'YYYY-MM-DD HH24:MI:SS') from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
to_char(ts, 'YYYY-MM-DD HH24:MI:SS') |
|
|
=======================================
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
2020-10-01 00:00:00 |
|
|
|
|
taos> select timetruncate(ts, 1a) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
timetruncate(ts, 1a) |
|
|
==========================
|
|
2020-10-01 00:00:00.000 |
|
|
2020-10-01 00:00:00.000 |
|
|
2020-10-01 00:00:00.000 |
|
|
2020-10-01 00:00:00.002 |
|
|
2020-10-01 00:00:00.002 |
|
|
|
|
taos> select week(ts) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
week(ts) |
|
|
========================
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
39 |
|
|
|
|
taos> select dayofweek(ts) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
dayofweek(ts) |
|
|
========================
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
5 |
|
|
|
|
taos> select weekofyear(ts) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
weekofyear(ts) |
|
|
========================
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
40 |
|
|
|
|
taos> select weekday(ts) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
weekday(ts) |
|
|
========================
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
|
|
taos> select apercentile(int_tag, 10) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
apercentile(int_tag, 10) |
|
|
============================
|
|
0 |
|
|
|
|
taos> select avg(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
avg(int_tag) |
|
|
============================
|
|
1.33333333333333 |
|
|
|
|
taos> select count(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
count(int_tag) |
|
|
========================
|
|
69999 |
|
|
|
|
taos> select count(*) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
count(*) |
|
|
========================
|
|
69999 |
|
|
|
|
taos> select elapsed(ts) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
elapsed(ts) |
|
|
============================
|
|
49995 |
|
|
|
|
taos> select spread(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
spread(int_tag) |
|
|
============================
|
|
3 |
|
|
|
|
taos> select stddev(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
stddev(int_tag) |
|
|
============================
|
|
1.24721912892464 |
|
|
|
|
taos> select sum(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
sum(int_tag) |
|
|
========================
|
|
93332 |
|
|
|
|
taos> select var_pop(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
var_pop(int_tag) |
|
|
============================
|
|
1.55555555555555 |
|
|
|
|
taos> select hyperloglog(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
hyperloglog(int_tag) |
|
|
========================
|
|
3 |
|
|
|
|
taos> select percentile(int_tag, 0.5) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
taos> select bottom(int_tag, 10) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
bottom(int_tag, 10) |
|
|
======================
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
|
|
taos> select top(int_tag, 10) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
top(int_tag, 10) |
|
|
===================
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
3 |
|
|
|
|
taos> select first(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
first(int_tag) |
|
|
=================
|
|
1 |
|
|
|
|
taos> select first(*) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
first(ts) | first(u_tinyint_col) | first(u_smallint_col) | first(u_int_col) | first(u_bigint_col) | first(tinyint_col) | first(smallint_col) | first(int_col) | first(bigint_col) | first(float_col) | first(double_col) | first(bool_col) | first(binary_16_col) | first(binary_32_col) | first(nchar_16_col) | first(nchar_32_col) |
|
|
=======================================================================================================================================================================================================================================================================================================================================================================================================
|
|
2020-10-01 00:00:00.000 | 29 | 13238 | 432633471 | 1825145387 | 80 | 32519 | -650873068 | -9223372036854775808 | 99528.7 | 73495720.958304 | true | San Diego | Shanghai - Los Angles | 一。San Franc | 圣克拉拉 - Santa Clara |
|
|
|
|
taos> select interp(int_tag) from test_vtable_select.vtb_virtual_stb where u_tinyint_col > 0 and u_int_col > 0 RANGE('2020-10-01 00:00:00.000', '2020-10-01 00:01:00.000') EVERY (2a) FILL(linear) order by 1 limit 5;
|
|
interp(int_tag) |
|
|
==================
|
|
1 |
|
|
1 |
|
|
1 |
|
|
1 |
|
|
1 |
|
|
|
|
taos> select last(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
last(int_tag) |
|
|
================
|
|
0 |
|
|
|
|
taos> select last(*) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
last(ts) | last(u_tinyint_col) | last(u_smallint_col) | last(u_int_col) | last(u_bigint_col) | last(tinyint_col) | last(smallint_col) | last(int_col) | last(bigint_col) | last(float_col) | last(double_col) | last(bool_col) | last(binary_16_col) | last(binary_32_col) | last(nchar_16_col) | last(nchar_32_col) |
|
|
===============================================================================================================================================================================================================================================================================================================================================================================================
|
|
2020-10-01 00:00:49.995 | 51 | 10486 | 1812337397 | 896525845 | 6 | 8984 | 1003732609 | -9223372036854775808 | -68902.9 | -46321277.573751 | true | Santa Clara | Hangzhou - San Diego | 一。San Franc | 圣克拉拉 - Santa Clara |
|
|
|
|
taos> select last_row(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
last_row(int_tag) |
|
|
====================
|
|
1 |
|
|
|
|
taos> select last_row(*) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
last_row(ts) | last_row(u_tinyint_col) | last_row(u_smallint_col) | last_row(u_int_col) | last_row(u_bigint_col) | last_row(tinyint_col) | last_row(smallint_col) | last_row(int_col) | last_row(bigint_col) | last_row(float_col) | last_row(double_col) | last_row(bool_col) | last_row(binary_16_col) | last_row(binary_32_col) | last_row(nchar_16_col) | last_row(nchar_32_col) |
|
|
================================================================================================================================================================================================================================================================================================================================================================================================================================
|
|
2020-10-01 00:00:49.995 | NULL | NULL | 1812337397 | NULL | NULL | NULL | NULL | NULL | -68902.9 | NULL | NULL | NULL | NULL | NULL | 圣克拉拉 - Santa Clara |
|
|
|
|
taos> select max(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
max(int_tag) |
|
|
===============
|
|
3 |
|
|
|
|
taos> select min(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
min(int_tag) |
|
|
===============
|
|
0 |
|
|
|
|
taos> select mode(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
mode(int_tag) |
|
|
================
|
|
0 |
|
|
|
|
taos> select tail(int_tag, 20) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
tail(int_tag, 20) |
|
|
====================
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
|
|
taos> select unique(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
unique(int_tag) |
|
|
==================
|
|
0 |
|
|
1 |
|
|
3 |
|
|
|
|
taos> select derivative(int_tag, 5a, 1) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
derivative(int_tag, 5a, 1) |
|
|
=============================
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
0 |
|
|
|
|
taos> select irate(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
taos> select statecount(int_tag, "GT", 20) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
statecount(int_tag, "GT", 20) |
|
|
================================
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
|
|
taos> select stateduration(int_tag, "GT", 20, 1a) from test_vtable_select.vtb_virtual_stb order by 1 limit 5;
|
|
stateduration(int_tag, "GT", 20, 1a) |
|
|
=======================================
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
-1 |
|
|
|
|
taos> select twa(int_tag) from test_vtable_select.vtb_virtual_stb order by 1 limit 5
|
|
twa(int_tag) |
|
|
============================
|
|
2 |
|
|
|