Trying to read Input.csv file from s3 bucket, get distinct values ( and do some other transformations) and then writing to target.csv file but running into issues when trying to