> ## Documentation Index
> Fetch the complete documentation index at: https://insightsoftware-preview.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Data Types

The Simba Athena ODBC Driver supports many common data formats, converting between Athena data types and SQL data types.

The following table lists the supported data type mappings.

<table><colgroup><col /><col /></colgroup><thead><tr><th scope="col"><span class="mc-variable General.ProductNameShort variable">Athena</span> Type</th><th scope="col">SQL Type</th></tr></thead><tbody><tr><td><p>ARRAY</p></td><td><ul><li>SQL\_VARCHAR if the <madcap:conditionaltext data-mc-conditions="Platform.Windows">Use SQL Unicode Types option (the </madcap:conditionaltext>`UseSQLUnicodeTypes` property<madcap:conditionaltext data-mc-conditions="Platform.Windows">)</madcap:conditionaltext> is disabled.</li><li>SQL\_WVARCHAR if the <madcap:conditionaltext data-mc-conditions="Platform.Windows">Use SQL Unicode Types option (the </madcap:conditionaltext>`UseSQLUnicodeTypes` property<madcap:conditionaltext data-mc-conditions="Platform.Windows">)</madcap:conditionaltext> is enabled.</li></ul></td></tr><tr><td><p>BIGINT</p></td><td><p>SQL\_BIGINT</p></td></tr><tr><td><p>BINARY</p></td><td>SQL\_VARBINARY</td></tr><tr><td><p>BOOLEAN</p></td><td><p>SQL\_BIT</p></td></tr><tr><td>CHAR</td><td><ul><li>SQL\_CHAR if the <madcap:conditionaltext data-mc-conditions="Platform.Windows">Use SQL Unicode Types option (the </madcap:conditionaltext>`UseSQLUnicodeTypes` property<madcap:conditionaltext data-mc-conditions="Platform.Windows">)</madcap:conditionaltext> is disabled.</li><li>SQL\_WCHAR  if the <madcap:conditionaltext data-mc-conditions="Platform.Windows">Use SQL Unicode Types option (the </madcap:conditionaltext>`UseSQLUnicodeTypes` property<madcap:conditionaltext data-mc-conditions="Platform.Windows">)</madcap:conditionaltext> is enabled.</li></ul></td></tr><tr><td><p>DATE</p><Note>**Note:** Not supported for Parquet files.</Note></td><td><ul><li>SQL\_TYPE\_DATE if theapplication uses ODBC version3.00 or later.</li><li>SQL\_DATE if the application usesan ODBC version earlier than3.00.</li></ul></td></tr><tr><td><p>DECIMAL (p, s)</p></td><td><p>SQL\_DECIMAL</p></td></tr><tr><td><p>DOUBLE</p></td><td><p>SQL\_DOUBLE</p></td></tr><tr><td>FLOAT</td><td>SQL\_REAL</td></tr><tr><td><p>INTEGER</p><Note>**Note:** Although Athena reports integer data as type INT, the connector reports integer data as type INTEGER to ensure compatibility with standard BI tools. For more information, see [Integer Support](#integer_support).</Note>
</td><td><p>SQL\_INTEGER</p></td></tr><tr><td><p>MAP</p></td><td><ul><li>SQL\_VARCHAR if the <madcap:conditionaltext data-mc-conditions="Platform.Windows">Use SQL Unicode Types option (the </madcap:conditionaltext>`UseSQLUnicodeTypes` property<madcap:conditionaltext data-mc-conditions="Platform.Windows">)</madcap:conditionaltext> is disabled.</li><li>SQL\_WVARCHAR if the <madcap:conditionaltext data-mc-conditions="Platform.Windows">Use SQL Unicode Types option (the </madcap:conditionaltext>`UseSQLUnicodeTypes` property<madcap:conditionaltext data-mc-conditions="Platform.Windows">)</madcap:conditionaltext> is enabled.</li></ul></td></tr><tr><td><p>SMALLINT</p></td><td><p>SQL\_SMALLINT</p></td></tr><tr><td><p>STRING</p></td><td><ul><li>SQL\_VARCHAR if the <madcap:conditionaltext data-mc-conditions="Platform.Windows">Use SQL Unicode Types option (the </madcap:conditionaltext>`UseSQLUnicodeTypes` property<madcap:conditionaltext data-mc-conditions="Platform.Windows">)</madcap:conditionaltext> is disabled.</li><li>SQL\_WVARCHAR if the <madcap:conditionaltext data-mc-conditions="Platform.Windows">Use SQL Unicode Types option (the </madcap:conditionaltext>`UseSQLUnicodeTypes` property<madcap:conditionaltext data-mc-conditions="Platform.Windows">)</madcap:conditionaltext> is enabled.</li></ul></td></tr><tr><td><p>STRUCT</p></td><td><ul><li>SQL\_VARCHAR if the <madcap:conditionaltext data-mc-conditions="Platform.Windows">Use SQL Unicode Types option (the </madcap:conditionaltext>`UseSQLUnicodeTypes` property<madcap:conditionaltext data-mc-conditions="Platform.Windows">)</madcap:conditionaltext> is disabled.</li><li>SQL\_WVARCHAR if the <madcap:conditionaltext data-mc-conditions="Platform.Windows">Use SQL Unicode Types option (the </madcap:conditionaltext>`UseSQLUnicodeTypes` property<madcap:conditionaltext data-mc-conditions="Platform.Windows">)</madcap:conditionaltext> is enabled.</li></ul></td></tr><tr><td><p>TIMESTAMP</p></td><td><ul><li>SQL\_TYPE\_TIMESTAMP if theapplication uses ODBC version3.00 or later.</li><li>SQL\_TIMESTAMP if the application usesan ODBC version earlier than3.00.</li></ul></td></tr><tr><td><p>TINYINT</p></td><td><p>SQL\_TINYINT</p></td></tr><tr><td><p>VARCHAR</p></td><td><ul><li>SQL\_VARCHAR if the <madcap:conditionaltext data-mc-conditions="Platform.Windows">Use SQL Unicode Types option (the </madcap:conditionaltext>`UseSQLUnicodeTypes` property<madcap:conditionaltext data-mc-conditions="Platform.Windows">)</madcap:conditionaltext> is disabled.</li><li>SQL\_WVARCHAR if the <madcap:conditionaltext data-mc-conditions="Platform.Windows">Use SQL Unicode Types option (the </madcap:conditionaltext>`UseSQLUnicodeTypes` property<madcap:conditionaltext data-mc-conditions="Platform.Windows">)</madcap:conditionaltext> is enabled.</li></ul></td></tr></tbody></table>

## Integer Support

Athena combines two different implementations of the integer data type:

* In Data Definition Language (DDL) queries, Athena uses the INT data type from Apache Hive.
* In all other queries, Athena uses the INTEGER data type from Presto.

To support the CAST queries that are used in many BI tools, the connector reports integer data as type INTEGER even though Athena reports the data as type INT.

<Note>
  **Note:** Be aware that, when executing DDL queries, you must specify integer data using INT as the data type.
</Note>

Athena supports some but not all DDL statements. For a list of the supported DDL statements, see "SQL and HiveQL Reference" in the *Amazon Athena API Reference* : [http://docs.aws.amazon.com/athena/latest/ug/language-reference.html](http://docs.aws.amazon.com/athena/latest/ug/language-reference.html).
