| 1 |
table_create Logs TABLE_HASH_KEY ShortText |
| 2 |
column_create Logs timestamp COLUMN_SCALAR Time |
| 3 |
|
| 4 |
table_create LoadedLogs TABLE_HASH_KEY ShortText |
| 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 |
"_key": "2015-02-03:1", |
| 12 |
"timestamp": "2015-02-03 10:49:00" |
| 13 |
}, |
| 14 |
{ |
| 15 |
"_key": "2015-02-03:2", |
| 16 |
"timestamp": "2015-02-03 12:49:00" |
| 17 |
}, |
| 18 |
{ |
| 19 |
"_key": "2015-02-04:1", |
| 20 |
"timestamp": "2015-02-04 00:00:00" |
| 21 |
} |
| 22 |
] |
| 23 |
|
| 24 |
select \ |
| 25 |
Logs \ |
| 26 |
--load_table LoadedLogs \ |
| 27 |
--load_columns "original_id, _key, timestamp_text, _key" \ |
| 28 |
--load_values "_id, _id, timestamp, _id" |
| 29 |
|
| 30 |
select --table LoadedLogs |