nebula
nebula copied to clipboard
Attribute clipping bug when returning tag
Describe the bug Only a subset of properties are returned when the tag is returned.
Your Environments nebula v3.4
How To Reproduce
(root@nebula) [nba]> MATCH (v:player{name:"Tim Duncan"}) RETURN v.player AS vtag
+----------------------+
| vtag |
+----------------------+
| {name: "Tim Duncan"} |
+----------------------+
Got 1 rows (time spent 1865/2114 us)
(root@nebula) [nba]> desc tag player
+--------+----------+-------+---------+---------+
| Field | Type | Null | Default | Comment |
+--------+----------+-------+---------+---------+
| "name" | "string" | "YES" | | |
| "age" | "int64" | "YES" | | |
+--------+----------+-------+---------+---------+
Got 2 rows (time spent 962/1271 us)
(root@nebula) [nba]> match (v) where id(v)=="Tim Duncan" return v.bachelor as vtag
+------+
| vtag |
+------+
| {} |
+------+
Got 1 rows (time spent 1248/1502 us)
(root@nebula) [nba]> desc tag bachelor
+--------------+----------+-------+---------+---------+
| Field | Type | Null | Default | Comment |
+--------------+----------+-------+---------+---------+
| "name" | "string" | "YES" | | |
| "speciality" | "string" | "YES" | | |
+--------------+----------+-------+---------+---------+
Got 2 rows (time spent 875/1144 us)
Expected behavior When a tag is returned, all its attributes should be returned.
This is a property reduction related bug. Considering the amount of work, better to fix it in later version after v3.5.