# 6.1 Data Types

Part of: [6 Language](6-language.md)

A data type is a classification that identifies one of various types of data, such as integers, floating-point numbers, or strings, and determines the possible values for that type, the operations that can be performed on values of that type, the meaning of the data, and how values of that type are stored. In other words, a data type is a classification of data that tells HDFql how the user intends to use it. The following table summarizes all existing HDFql data types, their ranges of values, and their sizes (in bytes).

| **Data Type** | **Range of Values** | **Size** |
|---|---|---|
| [TINYINT](6-1-1-tinyint.md) | -128 to 127 | 1 byte |
| [UNSIGNED TINYINT](6-1-2-unsigned-tinyint.md) | 0 to 255 | 1 byte |
| [SMALLINT](6-1-3-smallint.md) | -32,768 to 32,767 | 2 bytes |
| [UNSIGNED SMALLINT](6-1-4-unsigned-smallint.md) | 0 to 65,535 | 2 bytes |
| [INT](6-1-5-int.md) | -2,147,483,648 to 2,147,483,647 | 4 bytes |
| [UNSIGNED INT](6-1-6-unsigned-int.md) | 0 to 4,294,967,295 | 4 bytes |
| [BIGINT](6-1-7-bigint.md) | -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 | 8 bytes |
| [UNSIGNED BIGINT](6-1-8-unsigned-bigint.md) | 0 to 18,446,744,073,709,551,615 | 8 bytes |
| [FLOAT](6-1-9-float.md) | -3.4E+38 to 3.4E+38 | 4 bytes |
| [DOUBLE](6-1-10-double.md) | -1.79E+308 to 1.79E+308 | 8 bytes |
| [CHAR](6-1-11-char.md) | 0 to 255 | 1 byte |
| [VARTINYINT](6-1-12-vartinyint.md) | -128 to 127 | 1 byte (per element) |
| [UNSIGNED VARTINYINT](6-1-13-unsigned-vartinyint.md) | 0 to 255 | 1 byte (per element) |
| [VARSMALLINT](6-1-14-varsmallint.md) | -32,768 to 32,767 | 2 bytes (per element) |
| [UNSIGNED VARSMALLINT](6-1-15-unsigned-varsmallint.md) | 0 to 65,535 | 2 bytes (per element) |
| [VARINT](6-1-16-varint.md) | -2,147,483,648 to 2,147,483,647 | 4 bytes (per element) |
| [UNSIGNED VARINT](6-1-17-unsigned-varint.md) | 0 to 4,294,967,295 | 4 bytes (per element) |
| [VARBIGINT](6-1-18-varbigint.md) | -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 | 8 bytes (per element) |
| [UNSIGNED VARBIGINT](6-1-19-unsigned-varbigint.md) | 0 to 18,446,744,073,709,551,615 | 8 bytes (per element) |
| [VARFLOAT](6-1-20-varfloat.md) | -3.4E+38 to 3.4E+38 | 4 bytes (per element) |
| [VARDOUBLE](6-1-21-vardouble.md) | -1.79E+308 to 1.79E+308 | 8 bytes (per element) |
| [VARCHAR](6-1-22-varchar.md) | 0 to 255 | 1 byte (per element) |
| [OPAQUE](6-1-23-opaque.md) | 0 to 255 | 1 byte |
| [ENUMERATION](6-1-24-enumeration.md) | -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 | 1, 2, 4 or 8 bytes |
| [COMPOUND](6-1-25-compound.md) | Varies (depends on members) | Varies (depends on members) |

Table 6.3 – HDFql data types

## In this section

- [6.1.1 TINYINT](6-1-1-tinyint.md)
- [6.1.2 UNSIGNED TINYINT](6-1-2-unsigned-tinyint.md)
- [6.1.3 SMALLINT](6-1-3-smallint.md)
- [6.1.4 UNSIGNED SMALLINT](6-1-4-unsigned-smallint.md)
- [6.1.5 INT](6-1-5-int.md)
- [6.1.6 UNSIGNED INT](6-1-6-unsigned-int.md)
- [6.1.7 BIGINT](6-1-7-bigint.md)
- [6.1.8 UNSIGNED BIGINT](6-1-8-unsigned-bigint.md)
- [6.1.9 FLOAT](6-1-9-float.md)
- [6.1.10 DOUBLE](6-1-10-double.md)
- [6.1.11 CHAR](6-1-11-char.md)
- [6.1.12 VARTINYINT](6-1-12-vartinyint.md)
- [6.1.13 UNSIGNED VARTINYINT](6-1-13-unsigned-vartinyint.md)
- [6.1.14 VARSMALLINT](6-1-14-varsmallint.md)
- [6.1.15 UNSIGNED VARSMALLINT](6-1-15-unsigned-varsmallint.md)
- [6.1.16 VARINT](6-1-16-varint.md)
- [6.1.17 UNSIGNED VARINT](6-1-17-unsigned-varint.md)
- [6.1.18 VARBIGINT](6-1-18-varbigint.md)
- [6.1.19 UNSIGNED VARBIGINT](6-1-19-unsigned-varbigint.md)
- [6.1.20 VARFLOAT](6-1-20-varfloat.md)
- [6.1.21 VARDOUBLE](6-1-21-vardouble.md)
- [6.1.22 VARCHAR](6-1-22-varchar.md)
- [6.1.23 OPAQUE](6-1-23-opaque.md)
- [6.1.24 ENUMERATION](6-1-24-enumeration.md)
- [6.1.25 COMPOUND](6-1-25-compound.md)
