WendelLana commented on issue #995:
URL: https://github.com/apache/age/issues/995#issuecomment-1638709422

   Please note that the `label_name` parameter in the `cypher_target_node` 
struct may not always contain a value. This situation arises, for example, when 
using the provided queries in my previous comment. The presence of the label in 
the `CREATE` clause of the query affects whether the `label_name` parameter 
will have a value in `create_vertex`, so in cases where the variable is 
declared in the `MATCH` clause and referenced again in the `CREATE` clause, the 
label cannot be added again, resulting in an empty field for the `label_name` 
parameter.
   
   @rafsun42 Therefore, I believe we would have to scan a junction table (with 
all vertices ID and label ID) or each duplicate of the label table (that only 
has the vertex ID, the `Label_hash`) to get the label table ID or label name. 
As presented, we could use a trimmed and indexed table by hash method to make 
this scan faster.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to