Debian Codegraph @

test/command/suite/select/load_table/no_key.test

raw
1 table_create Logs TABLE_NO_KEY
2 column_create Logs timestamp COLUMN_SCALAR Time
3
4 table_create LoadedLogs TABLE_NO_KEY
5 column_create LoadedLogs original_id COLUMN_SCALAR UInt32
6 column_create LoadedLogs timestamp_text COLUMN_SCALAR ShortText
7
8 load --table Logs
9 [
10 {
11 "timestamp": "2015-02-03 10:49:00"
12 },
13 {
14 "timestamp": "2015-02-03 12:49:00"
15 },
16 {
17 "timestamp": "2015-02-04 00:00:00"
18 }
19 ]
20
21 select \
22 Logs \
23 --load_table LoadedLogs \
24 --load_columns "original_id, timestamp_text" \
25 --load_values "_id, timestamp" \
26 --limit 0
27
28 select --table LoadedLogs