Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

fixed_string bug #1209

Closed
czpmango opened this issue Jul 6, 2021 · 2 comments
Closed

fixed_string bug #1209

czpmango opened this issue Jul 6, 2021 · 2 comments
Labels
bug Type: something is unexpected

Comments

@czpmango
Copy link
Contributor

czpmango commented Jul 6, 2021

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)
@czpmango czpmango added the bug Type: something is unexpected label Jul 6, 2021
@Aiee
Copy link
Contributor

Aiee commented Jul 9, 2021

Response from the service:
image

@czpmango
Copy link
Contributor Author

czpmango commented Jul 9, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Type: something is unexpected
Projects
None yet
Development

No branches or pull requests

2 participants