Roger667
2 years agoNew Contributor III
Unable to write salesforce data to s3 in parquet format
I Using saleforce read snap to read data and write to s3 in parquet format but getting error due to 'picklist' data type which is not compatible to parquet. How to handle such datat types problem
import requests
url = "https://MyURL.com?bearer_token=abc123"
files=[
('file',('fileName.png',open('file.png','rb'),'image/png'))
]
headers = {}response = requests.request("POST", url, headers=headers, files=files)
print(response.text)
Try this. The first argument in the file line should be the target filename you want to use. Let me know if this helps.
Regards,
Bojan