Hi there,
I am trying to load simple CSV to mySQL but i have some difficulties with NULL and empty string values.
This is my table for example:
create table test1 (
id int not null,
name varchar(255) not null,
age int null);
and my data looks like this in the mySQL:
*the blank values are not NULL they were inserted like:
insert into test(id,name) values (2,'');
Now when I export this into CSV and try to load this CSV back to mySQL it fails to understand that those empty values are just blank and not NULLs.
This is my NiFi configuration:
I followed the template from another question I found here and removed some parts that I find like I don't need (or maybe I need??) = removed the AvroSchemaRegistry and instead used Use String Fields From Header.
I tried many things from exporting values with double quotes,single quotes but still didn't manage to figure out how to load empty/blank/'' values instead of NULLs.
Please help 🙂