Debian Codegraph @

test/command/suite/column_rename/index/multiple_columns.expected

raw
1 table_create Memos TABLE_NO_KEY
2 [[0,0.0,0.0],true]
3 column_create Memos title COLUMN_SCALAR ShortText
4 [[0,0.0,0.0],true]
5 column_create Memos content COLUMN_SCALAR Text
6 [[0,0.0,0.0],true]
7 table_create Terms TABLE_PAT_KEY ShortText --normalizer NormalizerAuto --default_tokenizer TokenBigram
8 [[0,0.0,0.0],true]
9 column_create Terms memos COLUMN_INDEX|WITH_SECTION|WITH_POSITION Memos title,content
10 [[0,0.0,0.0],true]
11 load --table Memos
12 [
13 {"title": "Groonga", "content": "Groonga is fast."}
14 ]
15 [[0,0.0,0.0],1]
16 column_rename Terms memos memos_index
17 [[0,0.0,0.0],true]
18 dump
19 table_create Memos TABLE_NO_KEY
20 column_create Memos content COLUMN_SCALAR Text
21 column_create Memos title COLUMN_SCALAR ShortText
22
23 table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizer NormalizerAuto
24
25 load --table Memos
26 [
27 ["_id","content","title"],
28 [1,"Groonga is fast.","Groonga"]
29 ]
30
31 column_create Terms memos_index COLUMN_INDEX|WITH_SECTION|WITH_POSITION Memos title,content
32 select Memos --query "content:@groonga"
33 [
34 [
35 0,
36 0.0,
37 0.0
38 ],
39 [
40 [
41 [
42 1
43 ],
44 [
45 [
46 "_id",
47 "UInt32"
48 ],
49 [
50 "content",
51 "Text"
52 ],
53 [
54 "title",
55 "ShortText"
56 ]
57 ],
58 [
59 1,
60 "Groonga is fast.",
61 "Groonga"
62 ]
63 ]
64 ]
65 ]