nebula icon indicating copy to clipboard operation
nebula copied to clipboard

Tag properties are not displayed

Open Marian2701 opened this issue 1 year ago • 1 comments

Describe the bug (must be provided)

2 1

Also not working in plain console.

Your Environments (must be provided)

Docker extension

  • OS: MacOS Darwin Kernel Version 23.2.0:
  • Compiler: Apple clang version 15.0.0 (clang-1500.1.0.2.5)
  • CPU: Intel Core i7
  • Node-version: v20.10.0
  • Studio-version: 3.7.0
  • Nebula version: 3.6.0

How To Reproduce(must be provided)

Steps to reproduce the behavior:

  1. Create tags and edges
CREATE TAG `City` ( `name` string, `geographic_location` geography(point), `wiki_data_id` string) ttl_duration = 0, ttl_col = "";

CREATE TAG `Country` ( `average_income` double, `low_income` double, `middle_income` double, `high_income` double, `minimum_wage` double, `country_name` string, `ISO3_country_code` string, `ISO2_country_code` string, `phone_code` string, `region` string, `sub_region` string) ttl_duration = 0, ttl_col = "";

CREATE EDGE `city_belongs_to_country` () ttl_duration = 0, ttl_col = "";

INSERT VERTEX `City` (`name`, `wiki_data_id`) VALUES "CITY_1":("CITY_1_name", "CITY_1_wiki_data_id");
INSERT VERTEX `City` (`name`, `wiki_data_id`) VALUES "CITY_1":("CITY_2_name", "CITY_2_wiki_data_id");
INSERT VERTEX `City` (`name`, `wiki_data_id`) VALUES "CITY_1":("CITY_3_name", "CITY_3_wiki_data_id");
INSERT VERTEX `City` (`name`, `wiki_data_id`) VALUES "CITY_1":("CITY_4_name", "CITY_4_wiki_data_id");
INSERT VERTEX `City` (`name`, `wiki_data_id`) VALUES "CITY_1":("CITY_5_name", "CITY_5_wiki_data_id");

INSERT VERTEX `Country` (`country_name`, `average_income`, `region`) VALUES "COUN_1":("COUN_1_country_name",1.11, "COUN_1_region");
INSERT VERTEX `Country` (`country_name`, `average_income`, `region`) VALUES "COUN_2":("COUN_2_country_name",2.22, "COUN_2_region");
INSERT VERTEX `Country` (`country_name`, `average_income`, `region`) VALUES "COUN_3":("COUN_3_country_name",3.33, "COUN_3_region");
INSERT VERTEX `Country` (`country_name`, `average_income`, `region`) VALUES "COUN_4":("COUN_4_country_name",4.44, "COUN_4_region");
INSERT VERTEX `Country` (`country_name`, `average_income`, `region`) VALUES "COUN_5":("COUN_5_country_name",5.55, "COUN_5_region");

INSERT EDGE `city_belongs_to_country` () VALUES "CITY_1"->"COUN_1":();
INSERT EDGE `city_belongs_to_country` () VALUES "CITY_2"->"COUN_2":();
INSERT EDGE `city_belongs_to_country` () VALUES "CITY_3"->"COUN_3":();
INSERT EDGE `city_belongs_to_country` () VALUES "CITY_4"->"COUN_4":();
INSERT EDGE `city_belongs_to_country` () VALUES "CITY_5"->"COUN_5":();
  1. Query without alias:
MATCH (tag1:`City`)
WHERE id(tag1) == "CITY_1"
MATCH (tag1)-[:`city_belongs_to_country`]->(tag2:`Country`)
RETURN tag1, tag2;
  1. Query with alias:
MATCH (tag1:`City`)
WHERE id(tag1) == "CITY_1"
MATCH (tag1)-[:`city_belongs_to_country`]->(tag2:`Country`)
RETURN tag1, tag2 AS alias;

Expected behavior

Query without alias must work as Query with alias.

Marian2701 avatar Jan 30 '24 12:01 Marian2701

@wey-gu Can you take a look at this issue, please?

QingZ11 avatar Feb 01 '24 08:02 QingZ11