We are using data pipeline to push the data from s3 to the amazon redshift table. We are pushing the data using JSON
{
"jsonpaths": [
"$['data1']",
"$['data1']",
"$['data1']['data1']",
"$['data1']['data1']",
"$['data1']['data1']",
"$['data1']['data1']",
"$['data1']",
"$['data1']",
"$['data1']",
"$['data1']['data1']",
"$['data1']['data1']"
]}
I recently want to add created_at in my redshift table which should take the current timestamp. I have added the column in my redshift table with default value to current timestamp. I have not defined in the json mapping file for this column (for obvious reasons). But the pipeline is failing stating that the no of columns and json mapping is not matching. Have tried reading multiple documents but have not got the proper solution for this. Can anyone help me on how can we insert default current timestamp to redshift table from s3 using aws data pipeline?