Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
210360228
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2021
210360228
Commits
5e208889
Unverified
Commit
5e208889
authored
4 years ago
by
Yichen Wang
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
revert skipped tests (#416)
parent
7bc037d5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/query/v2/test_starts_ends_with.py
+3
-35
3 additions, 35 deletions
tests/query/v2/test_starts_ends_with.py
with
3 additions
and
35 deletions
tests/query/v2/test_starts_ends_with.py
+
3
−
35
View file @
5e208889
...
...
@@ -171,58 +171,28 @@ class TestStartsWithAndEndsWith(NebulaTestSuite):
}
self
.
check_out_of_order_result
(
resp
,
expected_data
[
"
rows
"
])
@pytest.mark.skip
(
reason
=
"
query result was auto-deduped
"
)
def
test_starts_with_GO
(
self
):
stmt
=
'''
GO FROM
'
Tony Parker
'
OVER like WHERE
$^.player.name
STARTS WITH
'
Tony
'
YIELD $^.player.name
'''
stmt
=
'''
GO FROM
'
Tony Parker
'
OVER like WHERE
like._dst
STARTS WITH
'
LaMarcus
'
YIELD $^.player.name
'''
resp
=
self
.
execute_query
(
stmt
)
self
.
check_resp_succeeded
(
resp
)
expected_data
=
{
"
column_names
"
:
[
'
$^.player.name
'
],
"
rows
"
:
[
[
'
Tony Parker
'
],
[
'
Tony Parker
'
]
]
}
self
.
check_column_names
(
resp
,
expected_data
[
"
column_names
"
])
self
.
check_out_of_order_result
(
resp
,
expected_data
[
"
rows
"
])
stmt
=
'''
GO FROM
'
Tony Parker
'
OVER like WHERE like._dst IN [
'
Tim Duncan
'
,
'
Danny Green
'
]
AND $$.player.name STARTS WITH
'
Adam
'
YIELD $$.player.name
'''
resp
=
self
.
execute_query
(
stmt
)
self
.
check_resp_succeeded
(
resp
)
expected_data
=
{
"
column_names
"
:
[
'
$$.player.name
'
],
"
rows
"
:
[
]
}
self
.
check_column_names
(
resp
,
expected_data
[
"
column_names
"
])
self
.
check_out_of_order_result
(
resp
,
expected_data
[
"
rows
"
])
stmt
=
'''
$A = GO FROM
'
Tony Parker
'
OVER like YIELD like._dst AS ID;
GO FROM $A.ID OVER like WHERE like.likeness NOT IN [95,56,21]
AND $$.player.name STARTS WITH
'
TONY
'
YIELD $^.player.name, $$.player.name, like.likeness
'''
resp
=
self
.
execute_query
(
stmt
)
self
.
check_resp_succeeded
(
resp
)
expected_data
=
{
"
column_names
"
:
[
'
$^.player.name
'
,
'
$$.player.name
'
,
'
like.likeness
'
],
"
rows
"
:
[
]
}
self
.
check_column_names
(
resp
,
expected_data
[
"
column_names
"
])
self
.
check_out_of_order_result
(
resp
,
expected_data
[
"
rows
"
])
stmt
=
'''
$A = GO FROM
'
Tony Parker
'
OVER like YIELD like._dst AS ID;
GO FROM $A.ID OVER like WHERE like.likeness NOT IN [95,56,21]
AND $$.player.name STARTS WITH
'
Tony
'
YIELD $^.player.name, $$.player.name, like.likeness
'''
stmt
=
'''
GO FROM
'
Tony Parker
'
OVER like WHERE like._dst STARTS WITH
'
Obama
'
YIELD $^.player.name
'''
resp
=
self
.
execute_query
(
stmt
)
self
.
check_resp_succeeded
(
resp
)
expected_data
=
{
"
column_names
"
:
[
'
$^.player.name
'
,
'
$$.player.name
'
,
'
like.likeness
'
],
"
column_names
"
:
[
'
$^.player.name
'
],
"
rows
"
:
[
[
'
LaMarcus Aldridge
'
,
'
Tony Parker
'
,
75
],
]
}
self
.
check_column_names
(
resp
,
expected_data
[
"
column_names
"
])
...
...
@@ -484,7 +454,6 @@ class TestStartsWithAndEndsWith(NebulaTestSuite):
}
self
.
check_out_of_order_result
(
resp
,
expected_data
[
"
rows
"
])
@pytest.mark.skip
(
reason
=
"
storage issue caused this test fail link: https://github.com/vesoft-inc/nebula-storage/issues/166
"
)
def
test_ends_with_GO
(
self
):
stmt
=
'''
GO FROM
'
Tony Parker
'
OVER like WHERE like._dst ENDS WITH
'
Ginobili
'
YIELD $^.player.name
'''
resp
=
self
.
execute_query
(
stmt
)
...
...
@@ -499,7 +468,6 @@ class TestStartsWithAndEndsWith(NebulaTestSuite):
self
.
check_column_names
(
resp
,
expected_data
[
"
column_names
"
])
self
.
check_out_of_order_result
(
resp
,
expected_data
[
"
rows
"
])
@pytest.mark.skip
(
reason
=
"
storage issue caused this test fail link: https://github.com/vesoft-inc/nebula-storage/issues/166
"
)
def
test_not_ends_with_GO
(
self
):
stmt
=
'''
GO FROM
'
Tony Parker
'
OVER like WHERE like._dst NOT ENDS WITH
'
Ginobili
'
YIELD $^.player.name
'''
resp
=
self
.
execute_query
(
stmt
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment