nebula icon indicating copy to clipboard operation
nebula copied to clipboard

Attribute clipping bug when returning tag

Open czpmango opened this issue 2 years ago • 1 comments

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.

czpmango avatar Feb 07 '23 06:02 czpmango

This is a property reduction related bug. Considering the amount of work, better to fix it in later version after v3.5.

dutor avatar Mar 30 '23 09:03 dutor