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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
whttps://repo1.maven.org/maven2/io/trino/trino-cli/359/trino-cli-359-executable.jar.jar
--2023-10-24 05:30:17-- https://repo1.maven.org/maven2/io/trino/trino-cli/359/trino-cli-359-executable.jar
Resolving repo1.maven.org (repo1.maven.org)... 198.18.0.184, 2a04:4e42:a::209
Connecting to repo1.maven.org (repo1.maven.org)|198.18.0.184|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10137386 (9.7M) [application/java-archive]
Saving to: ‘trino-cli-359-executable.jar’
trino-cli-359-executable.jar 100%[================================================>] 9.67M 4.87MB/s in 2.0s
2023-10-24 05:30:20 (4.87 MB/s) - ‘trino-cli-359-executable.jar’ saved [10137386/10137386]
root@trino-worker-1:/usr/local/trino-server-368/bin# mv trino-cli-359-executable.jar /usr/local/sbin/trino
root@trino-worker-1:/usr/local/trino-server-368/bin# chmod a+x /usr/local/sbin/trino
root@trino-worker-1:/usr/local/trino-server-368/bin# trino
trino>
trino>
root@trino-worker-1:/usr/local/trino-server-368/bin# trino --server trino-coordinator-1:8091
trino> use hive.default;
USE
trino:default> select symbol, max(ts) from stock_ticks_cow group by symbol HAVING symbol = 'GOOG';
symbol | _col1
--------+---------------------
GOOG | 2018-08-31 10:29:00
(1 row)
Query 20231024_053152_00003_ch5qd, FINISHED, 1 node
Splits: 25 total, 25 done (100.00%)
6.23 [197 rows, 442KB] [31 rows/s, 70.9KB/s]
trino:default> select "_hoodie_commit_time", symbol, ts, volume, open, close from stock_ticks_cow where symbol = 'GOOG';
_hoodie_commit_time | symbol | ts | volume | open | close
---------------------+--------+---------------------+--------+-----------+----------
20231024051251213 | GOOG | 2018-08-31 09:59:00 | 6330 | 1230.5 | 1230.02
20231024051251213 | GOOG | 2018-08-31 10:29:00 | 3391 | 1230.1899 | 1230.085
(2 rows)
Query 20231024_053210_00004_ch5qd, FINISHED, 1 node
Splits: 9 total, 9 done (100.00%)
0.50 [197 rows, 450KB] [393 rows/s, 898KB/s]
trino:default> select symbol, max(ts) from stock_ticks_mor_ro group by symbol HAVING symbol = 'GOOG';
symbol | _col1
--------+---------------------
GOOG | 2018-08-31 10:29:00
(1 row)
Query 20231024_053221_00005_ch5qd, FINISHED, 1 node
Splits: 25 total, 25 done (100.00%)
0.51 [197 rows, 442KB] [387 rows/s, 869KB/s]
trino:default> select "_hoodie_commit_time", symbol, ts, volume, open, close from stock_ticks_mor_ro where symbol = 'GOOG';
_hoodie_commit_time | symbol | ts | volume | open | close
---------------------+--------+---------------------+--------+-----------+----------
20231024051414103 | GOOG | 2018-08-31 09:59:00 | 6330 | 1230.5 | 1230.02
20231024051414103 | GOOG | 2018-08-31 10:29:00 | 3391 | 1230.1899 | 1230.085
(2 rows)
Query 20231024_053239_00006_ch5qd, FINISHED, 1 node
Splits: 9 total, 9 done (100.00%)
0.37 [197 rows, 450KB] [530 rows/s, 1.18MB/s]
trino:default>
|