简体   繁体   中英

Pentaho, adding extra information to a DataBase

I have a transformation that downloads information from a JSON file, which I put in a database.

I want from an excel to add a missing code in the JSON to add it to my database.

Excel contains the entire list of city codes and their names, but in the JSON they appear repeated since I have information for years and I would need to add the code of the cities without data in the JSON file so that the final application reports that these cities have no data

I try to use merge transformation without results, and I want to add that city codes to my database.

You can do it by using the merge join step (joining probably on the city name) and using the Left or Right outer join options, so that cities without json data are also added to the output stream.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM