UnderstandLingBV / Tuktu

Big Data Science Swiss Army Knife - http://www.tuktu.io --
http://www.understandling.com
Other
60 stars 16 forks source link

Provides an empty string for missing keys #63

Closed dmassart closed 7 years ago

dmassart commented 7 years ago

When a key is missing in a data packet during the generation of a CSV file, a java.util.NoSuchElementException (key not found) is raised, which interrupts the file generation. The proposed change provides an empty string for missing keys, which allows the CSV file generation to complete.

ErikTromp commented 7 years ago

If this is desired, use the JSON Fetcher before the CSV processor to provide an empty string for missing fields (and convert them to a real string if you need to).