You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
load_command='LOAD CSV FROM "'+csv_folder+'/{0}.csv" NO HEADER AS row OPTIONAL MATCH (s1:{1}),(t1:{2}) WHERE s1.dn=row[1] AND t1.name=row[3] AND t1.dn STARTS WITH row[2] AND s1.fabric=row[0] AND t1.fabric=row[0] WITH s1, t1, row OPTIONAL MATCH (s2:{1}),(t2:{2}) WHERE s2.dn=row[1] AND t2.name=row[3] AND t2.dn STARTS WITH "uni/tn-common" AND s2.fabric=row[0] AND t2.fabric=row[0] WITH COALESCE(s1, s2) as s, COALESCE(t1, t2) AS t WHERE s IS NOT NULL AND t IS NOT NULL CREATE {3}'.format(key,rel.Parent.ClassName,rel_target_class,edge_direction)
165
+
load_command='LOAD CSV FROM "'+csv_folder+'/{0}.csv" NO HEADER AS row \
166
+
MATCH (s:{1}) WHERE s.dn=row[1] AND s.fabric=row[0] \
167
+
OPTIONAL MATCH (t1:{2}) WHERE t1.name=row[3] AND t1.dn STARTS WITH row[2] AND t1.fabric=row[0] \
168
+
OPTIONAL MATCH (t2:{2}) WHERE t2.name=row[3] AND t2.dn STARTS WITH "uni/tn-common" AND t2.fabric=row[0] \
169
+
OPTIONAL MATCH (t3:{2}) WHERE t3.name=row[3] AND t3.dn STARTS WITH "uni/fabric" AND t3.fabric=row[0] \
170
+
OPTIONAL MATCH (t4:{2}) WHERE t4.name=row[3] AND t4.dn STARTS WITH "uni/infra" AND t4.fabric=row[0] \
171
+
OPTIONAL MATCH (t5:MissingTarget) WHERE t5.fabric=row[0] \
"cypherQuery": "// I am not loading commRsKeyRing class in the DB so I just ignore it here\nMATCH (p:MissingTarget)-[r]-(t) WHERE TYPE(r) != \"commRsKeyRing\" AND p.fabric='$fabric'\nRETURN t.dn AS Parent ,r.target AS TargetName, TYPE(r) AS RelationshipClass",
0 commit comments