Debian Codegraph @

test/command/suite/load/vector/reference/missing_add/json_object/default.expected

raw
1 table_create Tags TABLE_HASH_KEY ShortText
2 [[0,0.0,0.0],true]
3 table_create Data TABLE_NO_KEY
4 [[0,0.0,0.0],true]
5 column_create Data tags COLUMN_VECTOR|WITH_WEIGHT|MISSING_ADD Tags
6 [[0,0.0,0.0],true]
7 load --table Tags
8 [
9 {"_key": "existent1"},
10 {"_key": "existent2"}
11 ]
12 [[0,0.0,0.0],2]
13 load --table Data
14 [
15 {"tags": "{\"existent1\": 1, \"nonexistent\": 2, \"existent2\": 3}"}
16 ]
17 [[0,0.0,0.0],1]
18 dump
19 table_create Data TABLE_NO_KEY
20
21 table_create Tags TABLE_HASH_KEY ShortText
22
23 column_create Data tags COLUMN_VECTOR|WITH_WEIGHT Tags
24
25 load --table Tags
26 [
27 ["_key"],
28 ["existent1"],
29 ["existent2"],
30 ["nonexistent"]
31 ]
32
33 load --table Data
34 [
35 ["_id","tags"],
36 [1,{"existent1":1,"nonexistent":2,"existent2":3}]
37 ]