vesoft-inc / nebula-graph

A distributed, fast open-source graph database featuring horizontal scalability and high availability. This is an archived repo for v2.5 only, from 2.6.0 +, NebulaGraph switched back to https://github.com/vesoft-inc/nebula

Home Page:https://nebula-graph.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fixed_string bug

czpmango opened this issue · comments

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)

Response from the service:
image

Padding \0 after a fixed-length string is correct.