Solved! The problem are the variables. I changed $input.attribute in 
${input.attribute}


Ratings.json

{
"config": {
"log": "info",
"parallel": false
},
"source": {
"file": {
"path": "D:\\ETL\\ratings.dat"
}
},
"extractor": {
"row": {
 }
},
"transformers": [{
"csv": {
"separator": "^",
"columnsOnFirstLine": false,
"columns": ["userId:integer",
"movieId:integer",
"rating:integer",
"timestamp:datetime"]
}
},
{
"command": {
"command": "create edge rated from (select from Users where id = 
${input.userId}) to (select from Movies where id = ${input.movieId}) set 
ratings = ${input.ratings} , rating_date = ${input.timestamp}",
"output": "edge"
}
}],
"loader": {
"orientdb": {
"dbURL": "remote:localhost/MovieRatings",
"dbType": "graph",
"standardElementConstraints": false,
"classes": [{
"name": "rated",
"extends": "E"
}]
}
}
}

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to