I am new to AWS Glue and pyspark. I have a table in RDS which contains a varchar field id.
I want to map id to a String field in the output json which is inside a json array field (let's say newId):
{
"sources" : [
"newId" : "1234asdf"
]
}
How can I achieve this using the transforms defined in the pyspark script of the AWS Glue job.