Map Salesforce External Object Field to Amazon Athena Data
Types
External object fields of Salesforce Connect SQL adapter for Amazon Athena can be
mapped to columns with scalar types such as strings and numbers. External object fields can’t be
mapped to columns containing complex or nested data types such as an array, map, or
struct.
Required Editions
Available in: both Salesforce Classic
and Lightning Experience
Available in: Developer Edition
Available for an extra cost in:
Enterprise, Performance, and Unlimited Editions
The table details the mappings between column types in Amazon Athena to external object field
types in Salesforce.
Amazon Athena Data Type
Salesforce External Object Field Type
boolean
Checkbox
tinyint, smallint, int and integer, bigint, double, float, decimal
Number
Mapped to default precision and scale, which you can
override.
char
Text or Text Area
varchar, string
Text, Text Area, or Text Area (Long)
date
Date
Supported format is YYYY-MM-DD
timestamp
Date/Time
Supported format is yyyy-MM-dd HH:mm:ss.f
For example,
‘2008-09-15 03:04:05.324'
Note For Time Salesforce field type, there isn’t an equivalent column type
in Amazon Athena.
This mapping strategy is for Amazon Athena data types to some of the common field types of
external objects in Salesforce.
A char, string, or varchar data type that represents a phone, URL, Text, Text Area, Text
Area (Long), or Email is stored as the corresponding Salesforce field type.
A char, string, or varchar data type that represents a Picklist is rendered as Salesforce
defined enumeration values. For Picklist (Multi-Select), it’s stored as comma-separated
values of the selected choices.
A decimal data type that represents a percent is stored as a numeric value of percent
type.
A decimal data type that represents currency is stored as a numeric value using the
currency symbol configured for the Salesforce org.
Note When you manually create fields for an external object, make sure that the mapped
attributes are of a compatible type.
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.