Skip to content

Commit

Permalink
Adding locations to unsupported fields (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
ns-iknox authored Mar 30, 2020
1 parent 4d342d4 commit d130f0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tap_salesforce/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d130f0f

Please sign in to comment.