From 9ed7a6083a9ea44fdec8a0774c84a2fdb8398652 Mon Sep 17 00:00:00 2001 From: iknox Date: Wed, 25 Mar 2020 20:27:06 -0500 Subject: [PATCH] Adding locations to unsupported fields --- tap_salesforce/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tap_salesforce/__init__.py b/tap_salesforce/__init__.py index ca38b316..df31d29a 100644 --- a/tap_salesforce/__init__.py +++ b/tap_salesforce/__init__.py @@ -163,10 +163,10 @@ def do_discover(sf): property_schema, mdata = create_property_schema( f, mdata) - # Compound Address fields cannot be queried by the Bulk API - if f['type'] == "address" and sf.api_type == tap_salesforce.salesforce.BULK_API_TYPE: + # Compound Address fields and geolocations cannot be queried by the Bulk API + if f['type'] in ("address", "location") and sf.api_type == tap_salesforce.salesforce.BULK_API_TYPE: unsupported_fields.add( - (field_name, 'cannot query compound address fields with bulk API')) + (field_name, 'cannot query compound address fields or geolocations with bulk API')) # we haven't been able to observe any records with a json field, so we # are marking it as unavailable until we have an example to work with