OrientDB ETL with self joined mysql table -
i'm trying (new orientdb) load old fashioned self joined mysql table orientdb. i'm kinda stuck, want create vertices , edges etl edges created empty vertices. spent many hours in documentation can't find missing.
here oetl json file :
{ "config": { "log": "debug" }, "extractor" : { "jdbc": { "driver": "com.mysql.jdbc.driver", "url": "***", "username": "***", "userpassword": "***", "query": "select nid, pnid, label prod_arbo limit 500" } }, "transformers" : [ { "vertex": { "class": "noeud", "skipduplicates": true} }, { "field": { "fieldname": "titre", "expression": "label"}}, { "field": { "fieldname": "titre", "operation": "remove"} }, { "field": { "fieldname": "pnid", "operation": "remove"} }, { "edge": { "class": "parent", "joinfieldname": "pnid", "lookup": "noeud.nid", "unresolvedlinkaction": "create" } } ], "loader" : { "orientdb": { "dburl": "***", "dbuser": "***", "dbpassword": "***", "standardelementconstraints": false, "tx": false, "wal": false, "dbtype": "graph" } } }
mysql db :
nid -> autoincrement unique id label -> need put in field "titre" pnid -> parent self join
i logs :
[43:edge] debug transformer input: v(noeud)[#13:57377] [43:edge] debug joincurrentvalue=null, lookupresult=null [43:edge] debug created new vertex=noeud#13:57378{nid:null} v36 [43:edge] debug created new edge=e[#17:56380][#13:57377-parent->#13:57378] [43:edge] debug transformer output: v(noeud)[#13:57377]
and don't understand why nid null on new created vertex while created edge, how can make use pnid field here ?
many laurent
Comments
Post a Comment