Skip to content
Snippets Groups Projects
Unverified Commit ef5db1e1 authored by jimingquan's avatar jimingquan Committed by GitHub
Browse files

Check type of index (#933)

parent faeeddea
No related branches found
No related tags found
No related merge requests found
...@@ -212,6 +212,11 @@ Feature: tag and edge index tests from pytest ...@@ -212,6 +212,11 @@ Feature: tag and edge index tests from pytest
SHOW CREATE TAG INDEX non_existent_tag_index SHOW CREATE TAG INDEX non_existent_tag_index
""" """
Then an ExecutionError should be raised at runtime. Then an ExecutionError should be raised at runtime.
When executing query:
"""
SHOW CREATE EDGE INDEX disorder_tag_index
"""
Then an ExecutionError should be raised at runtime.
When executing query: When executing query:
""" """
SHOW TAG INDEXES SHOW TAG INDEXES
...@@ -403,6 +408,11 @@ Feature: tag and edge index tests from pytest ...@@ -403,6 +408,11 @@ Feature: tag and edge index tests from pytest
Then the result should be, in any order: Then the result should be, in any order:
| Edge Index Name | Create Edge Index | | Edge Index Name | Create Edge Index |
| 'single_edge_index' | 'CREATE EDGE INDEX `single_edge_index` ON `edge_1` (\n `col2`\n)' | | 'single_edge_index' | 'CREATE EDGE INDEX `single_edge_index` ON `edge_1` (\n `col2`\n)' |
When executing query:
"""
SHOW CREATE TAG INDEX single_edge_index
"""
Then an ExecutionError should be raised at runtime.
When executing query: When executing query:
""" """
SHOW CREATE EDGE INDEX multi_edge_index SHOW CREATE EDGE INDEX multi_edge_index
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment