age icon indicating copy to clipboard operation
age copied to clipboard

CREATE node with multiple labels

Open deka opened this issue 2 years ago • 2 comments

Describe the bug Can you confirm AGE is compliant with opencypher spec v9 ?

CREATE (:Label1:Label2) not working

How are you accessing AGE (Command line, driver, etc.)?

  • [e.g. JDBC]

What data setup do we need to do? Nothing

What is the necessary configuration info needed? Nothing

What is the command that caused the error?

SELECT * 
FROM cypher('graph', $$
    CREATE (n:Label1:Label2)
	RETURN n
$$) as (a agtype);
ERROR:  syntax error at or near ":"

Expected behavior Create node with multiple labels

Environment (please complete the following information):

  • Version: [e.g. 1.0.0]

deka avatar Jun 20 '22 14:06 deka

I see https://github.com/apache/age/issues/187

Can you add informations about opencypher specifications support ?

deka avatar Jun 20 '22 15:06 deka

It was an early design decision to not explicitly allow multiple labels for a vertex or edge in AGE. This was largely due to performance issues. Our team would need to revisit and discuss whether we would want to add that functionality. So, for now, multiple labels are not supported.

jrgemignani avatar Jul 11 '22 22:07 jrgemignani