fixed_string bug
czpmango opened this issue · comments
kyle.cao commented
Type Fixed_string
is filled with spaces by default but expects an \0
.
(czp@nebula) [nba]> create tag fixStrTest(name fixed_string(8))
Execution succeeded (time spent 1048/1284 us)
(czp@nebula) [nba]> insert vertex fixStrTest(name) values "czp":("czp")
Execution succeeded (time spent 1419/1671 us)
(czp@nebula) [nba]> match (v:fixStrTest) where v.name starts with "czp" return v
+----------------------------------+
| v |
+----------------------------------+
| ("czp" :fixStrTest{name: "czp"}) |
+----------------------------------+
Got 1 rows (time spent 2708/2931 us)
(czp@nebula) [nba]> match (v:fixStrTest) where v.name == "czp" return v
+---+
| v |
+---+
+---+
Empty set (time spent 2404/2605 us)
Yichen Wang commented
kyle.cao commented
Padding \0
after a fixed-length string is correct.