Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
object_inspect: start supporting column
- Loading branch information
Showing
9 changed files
with
284 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| table_create Memos TABLE_NO_KEY | ||
| [[0,0.0,0.0],true] | ||
| column_create Memos title COLUMN_SCALAR ShortText | ||
| [[0,0.0,0.0],true] | ||
| column_create Memos content COLUMN_SCALAR Text | ||
| [[0,0.0,0.0],true] | ||
| table_create Terms TABLE_PAT_KEY ShortText --normalizer NormalizerAuto --default_tokenizer TokenBigram | ||
| [[0,0.0,0.0],true] | ||
| column_create Terms memos_title_content COLUMN_INDEX|WITH_POSITION|WITH_SECTION Memos title,content | ||
| [[0,0.0,0.0],true] | ||
| object_inspect Terms.memos_title_content | ||
| [ | ||
| [ | ||
| 0, | ||
| 0.0, | ||
| 0.0 | ||
| ], | ||
| { | ||
| "id": 260, | ||
| "name": "memos_title_content", | ||
| "table": { | ||
| "id": 259, | ||
| "name": "Terms", | ||
| "type": { | ||
| "id": 49, | ||
| "name": "table:pat_key" | ||
| }, | ||
| "key": { | ||
| "type": { | ||
| "id": 14, | ||
| "name": "ShortText", | ||
| "type": { | ||
| "id": 32, | ||
| "name": "type" | ||
| }, | ||
| "size": 4096 | ||
| }, | ||
| "total_size": 0, | ||
| "max_total_size": 4294967294 | ||
| }, | ||
| "value": { | ||
| "type": null | ||
| }, | ||
| "n_records": 0 | ||
| }, | ||
| "full_name": "Terms.memos_title_content", | ||
| "type": { | ||
| "id": 72, | ||
| "name": "column:index" | ||
| }, | ||
| "value": { | ||
| "type": { | ||
| "id": 256, | ||
| "name": "Memos", | ||
| "type": { | ||
| "id": 51, | ||
| "name": "table:no_key" | ||
| }, | ||
| "size": 4 | ||
| } | ||
| } | ||
| } | ||
| ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| table_create Memos TABLE_NO_KEY | ||
| column_create Memos title COLUMN_SCALAR ShortText | ||
| column_create Memos content COLUMN_SCALAR Text | ||
|
|
||
| table_create Terms TABLE_PAT_KEY ShortText \ | ||
| --normalizer NormalizerAuto \ | ||
| --default_tokenizer TokenBigram | ||
| column_create Terms memos_title_content \ | ||
| COLUMN_INDEX|WITH_POSITION|WITH_SECTION \ | ||
| Memos title,content | ||
|
|
||
| object_inspect Terms.memos_title_content |
57 changes: 57 additions & 0 deletions
57
test/command/suite/object_inspect/column/scalar_fix.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| table_create Users TABLE_HASH_KEY ShortText | ||
| [[0,0.0,0.0],true] | ||
| column_create Users age COLUMN_SCALAR UInt8 | ||
| [[0,0.0,0.0],true] | ||
| object_inspect Users.age | ||
| [ | ||
| [ | ||
| 0, | ||
| 0.0, | ||
| 0.0 | ||
| ], | ||
| { | ||
| "id": 257, | ||
| "name": "age", | ||
| "table": { | ||
| "id": 256, | ||
| "name": "Users", | ||
| "type": { | ||
| "id": 48, | ||
| "name": "table:hash_key" | ||
| }, | ||
| "key": { | ||
| "type": { | ||
| "id": 14, | ||
| "name": "ShortText", | ||
| "type": { | ||
| "id": 32, | ||
| "name": "type" | ||
| }, | ||
| "size": 4096 | ||
| }, | ||
| "total_size": 0, | ||
| "max_total_size": 4294967295 | ||
| }, | ||
| "value": { | ||
| "type": null | ||
| }, | ||
| "n_records": 0 | ||
| }, | ||
| "full_name": "Users.age", | ||
| "type": { | ||
| "id": 64, | ||
| "name": "column:fix_size" | ||
| }, | ||
| "value": { | ||
| "type": { | ||
| "id": 5, | ||
| "name": "UInt8", | ||
| "type": { | ||
| "id": 32, | ||
| "name": "type" | ||
| }, | ||
| "size": 1 | ||
| } | ||
| } | ||
| } | ||
| ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| table_create Users TABLE_HASH_KEY ShortText | ||
| column_create Users age COLUMN_SCALAR UInt8 | ||
|
|
||
| object_inspect Users.age |
45 changes: 45 additions & 0 deletions
45
test/command/suite/object_inspect/column/scalar_var.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| table_create Memos TABLE_NO_KEY | ||
| [[0,0.0,0.0],true] | ||
| column_create Memos title COLUMN_SCALAR ShortText | ||
| [[0,0.0,0.0],true] | ||
| object_inspect Memos.title | ||
| [ | ||
| [ | ||
| 0, | ||
| 0.0, | ||
| 0.0 | ||
| ], | ||
| { | ||
| "id": 257, | ||
| "name": "title", | ||
| "table": { | ||
| "id": 256, | ||
| "name": "Memos", | ||
| "type": { | ||
| "id": 51, | ||
| "name": "table:no_key" | ||
| }, | ||
| "key": null, | ||
| "value": { | ||
| "type": null | ||
| }, | ||
| "n_records": 0 | ||
| }, | ||
| "full_name": "Memos.title", | ||
| "type": { | ||
| "id": 65, | ||
| "name": "column:var_size" | ||
| }, | ||
| "value": { | ||
| "type": { | ||
| "id": 14, | ||
| "name": "ShortText", | ||
| "type": { | ||
| "id": 32, | ||
| "name": "type" | ||
| }, | ||
| "size": 4096 | ||
| } | ||
| } | ||
| } | ||
| ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| table_create Memos TABLE_NO_KEY | ||
| column_create Memos title COLUMN_SCALAR ShortText | ||
|
|
||
| object_inspect Memos.title |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| table_create Memos TABLE_NO_KEY | ||
| [[0,0.0,0.0],true] | ||
| column_create Memos tags COLUMN_VECTOR ShortText | ||
| [[0,0.0,0.0],true] | ||
| object_inspect Memos.tags | ||
| [ | ||
| [ | ||
| 0, | ||
| 0.0, | ||
| 0.0 | ||
| ], | ||
| { | ||
| "id": 257, | ||
| "name": "tags", | ||
| "table": { | ||
| "id": 256, | ||
| "name": "Memos", | ||
| "type": { | ||
| "id": 51, | ||
| "name": "table:no_key" | ||
| }, | ||
| "key": null, | ||
| "value": { | ||
| "type": null | ||
| }, | ||
| "n_records": 0 | ||
| }, | ||
| "full_name": "Memos.tags", | ||
| "type": { | ||
| "id": 65, | ||
| "name": "column:var_size" | ||
| }, | ||
| "value": { | ||
| "type": { | ||
| "id": 14, | ||
| "name": "ShortText", | ||
| "type": { | ||
| "id": 32, | ||
| "name": "type" | ||
| }, | ||
| "size": 4096 | ||
| } | ||
| } | ||
| } | ||
| ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| table_create Memos TABLE_NO_KEY | ||
| column_create Memos tags COLUMN_VECTOR ShortText | ||
|
|
||
| object_inspect Memos.tags |