Reputation: 11
I am trying to load CSV file into mySQL database but failing doing this when there are fields with empty strings like ''. My Flow file looks like this -->
My CSVreader configuration looks like this -->
The table schema and data that I try to import with CSV-->
I created this table as CSV and try to load it into another DB with same schema but fails because of the second line with name ='' , for some reason NiFi reads this as NULL which isn't possible and not the right data.
How can I fix this?
Edit: That's how the CSV file looks like in editor--> enter image description here
"id","name","age"
1,"ggg",
2,"",
Upvotes: 1
Views: 1126
Reputation: 31
You have left name column empty in the second insert statement. Is not it normal to looks null in the csv?
Upvotes: 2