I am able to INSERT into Postgres DB from JOLTTransformJSON when using ConvertJSONToSQL (v1.13.2) and then PutSQL. But it fails when using PutDatabaseRecord after JOLTTransformJSON.
PutDatabaseRecord Failed to put Records to database java.lang.NumberFormatException: For input string: "Tue Oct 05 15:58:22 EDT 2021"
and
java.lang.NumberFormatException: For input string: "20201705101430"
Schema for the RecordReader
I have detail_r table in DB where all columns have type character varying type. Some are of length 20 some 10 some are 8 as needed. I am assuming that jolt transform json fields should match with column names. Some columns are extra in table for which no field is available in json and vice-versa. Can this be an issue. I prefer using PutDatabaseRecord over PutSQL because after PutSQL there is ExecuteSQL which doesn't work well with PutSQL , so can this be done, or what is wrong in below approach.