Skip to content

Commit

Permalink
test: add a test for creating forward index
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Feb 10, 2014
1 parent a536235 commit 97fbf6a
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 0 deletions.
74 changes: 74 additions & 0 deletions test/command/suite/column_create/index/forward.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
table_create Tags TABLE_PAT_KEY ShortText
[[0,0.0,0.0],true]
table_create Shops TABLE_HASH_KEY ShortText
[[0,0.0,0.0],true]
column_create Shops tags COLUMN_INDEX|WITH_WEIGHT Tags
[[0,0.0,0.0],true]
column_list Shops
[
[
0,
0.0,
0.0
],
[
[
[
"id",
"UInt32"
],
[
"name",
"ShortText"
],
[
"path",
"ShortText"
],
[
"type",
"ShortText"
],
[
"flags",
"ShortText"
],
[
"domain",
"ShortText"
],
[
"range",
"ShortText"
],
[
"source",
"ShortText"
]
],
[
257,
"_key",
"",
"",
"COLUMN_SCALAR",
"Shops",
"ShortText",
[

]
],
[
258,
"tags",
"db/db.0000102",
"index",
"COLUMN_INDEX|WITH_WEIGHT|PERSISTENT",
"Shops",
"Tags",
[

]
]
]
]
6 changes: 6 additions & 0 deletions test/command/suite/column_create/index/forward.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
table_create Tags TABLE_PAT_KEY ShortText

table_create Shops TABLE_HASH_KEY ShortText
column_create Shops tags COLUMN_INDEX|WITH_WEIGHT Tags

column_list Shops

0 comments on commit 97fbf6a

Please sign in to comment.