Debian Codegraph @

test/command/suite/load/vector/reference/missing_ignore/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_IGNORE 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 #|e| <Data.tags>: failed to cast to <Tags>: <"nonexistent">
19 dump
20 table_create Data TABLE_NO_KEY
21
22 table_create Tags TABLE_HASH_KEY ShortText
23
24 column_create Data tags COLUMN_VECTOR|WITH_WEIGHT|MISSING_IGNORE Tags
25
26 load --table Tags
27 [
28 ["_key"],
29 ["existent1"],
30 ["existent2"]
31 ]
32
33 load --table Data
34 [
35 ["_id","tags"],
36 [1,{"existent1":1,"existent2":3}]
37 ]