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
998cb7d1
Unverified
Commit
998cb7d1
authored
4 years ago
by
kyle.cao
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
tck support insert NULL (#793)
small change Co-authored-by:
Yee
<
2520865+yixinglu@users.noreply.github.com
>
parent
e1752f34
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/common/csv_import.py
+2
-0
2 additions, 0 deletions
tests/common/csv_import.py
tests/data/nba/player.csv
+4
-0
4 additions, 0 deletions
tests/data/nba/player.csv
tests/tck/features/match/Base.feature
+10
-0
10 additions, 0 deletions
tests/tck/features/match/Base.feature
with
16 additions
and
0 deletions
tests/common/csv_import.py
+
2
−
0
View file @
998cb7d1
...
...
@@ -111,6 +111,8 @@ class CSVImporter:
return
f
'
{
self
.
_insert_stmt
}
{
src_vid
}
->
{
dst_vid
}
@
{
rank
}
:(
{
"
,
"
.
join
(
props
)
}
);
'
def
value
(
self
,
ptype
:
str
,
col
):
if
col
==
"
__NULL__
"
or
col
==
"
NULL
"
or
col
==
"
null
"
or
col
==
"
Null
"
:
return
"
NULL
"
return
f
'"
{
col
}
"'
if
ptype
==
'
string
'
else
f
'
{
col
}
'
def
vid_str
(
self
,
vid
:
VID
,
col
:
str
):
...
...
This diff is collapsed.
Click to expand it.
tests/data/nba/player.csv
+
4
−
0
View file @
998cb7d1
...
...
@@ -51,3 +51,7 @@ Grant Hill,Grant Hill,46
Shaquile O'Neal,Shaquile O'Neal,47
JaVale McGee,JaVale McGee,31
Dwight Howard,Dwight Howard,33
Null1,null,-1
Null2,Null,-2
Null3,NULL,-3
Null4,__NULL__,-4
This diff is collapsed.
Click to expand it.
tests/tck/features/match/Base.feature
+
10
−
0
View file @
998cb7d1
...
...
@@ -15,6 +15,16 @@ Feature: Basic match
Then the result should be, in any order, with relax comparison
:
|
v
|
|
("Yao
Ming")
|
When executing query
:
"""
MATCH (v:player) WHERE v.age < 0 RETURN v
"""
Then the result should be, in any order, with relax comparison
:
|
v
|
|
("Null1"
:player{age:
-1,
name:
NULL})
|
|
("Null2"
:player{age:
-2,
name:
NULL})
|
|
("Null3"
:player{age:
-3,
name:
NULL})
|
|
("Null4"
:player{age:
-4,
name:
NULL})
|
When executing query
:
"""
MATCH (v:player) WHERE v.name == "Yao Ming" RETURN v.age AS Age
...
...
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