From a03904ed89b34a268d9fe2af2e59a3a8217174e8 Mon Sep 17 00:00:00 2001 From: Adam Roderick <23650+aroder@users.noreply.github.com> Date: Tue, 5 May 2020 07:09:37 -0600 Subject: [PATCH] Avoid "int too large to convert to C long" error on Windows OS --- tap_salesforce/salesforce/bulk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tap_salesforce/salesforce/bulk.py b/tap_salesforce/salesforce/bulk.py index 8cf27714..414b86f5 100644 --- a/tap_salesforce/salesforce/bulk.py +++ b/tap_salesforce/salesforce/bulk.py @@ -44,7 +44,7 @@ class Bulk(): def __init__(self, sf): # Set csv max reading size to the platform's max size available. - csv.field_size_limit(sys.maxsize) + csv.field_size_limit(min(sys.maxsize, 2**31)) self.sf = sf def has_permissions(self):