HDFql Reference Manual v2.6.0

6.1Data Types

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-128 to 1271 byte
UNSIGNED TINYINT0 to 2551 byte
SMALLINT-32,768 to 32,7672 bytes
UNSIGNED SMALLINT0 to 65,5352 bytes
INT-2,147,483,648 to 2,147,483,6474 bytes
UNSIGNED INT0 to 4,294,967,2954 bytes
BIGINT-9,223,372,036,854,775,808 to 9,223,372,036,854,775,8078 bytes
UNSIGNED BIGINT0 to 18,446,744,073,709,551,6158 bytes
FLOAT-3.4E+38 to 3.4E+384 bytes
DOUBLE-1.79E+308 to 1.79E+3088 bytes
CHAR0 to 2551 byte
VARTINYINT-128 to 1271 byte (per element)
UNSIGNED VARTINYINT0 to 2551 byte (per element)
VARSMALLINT-32,768 to 32,7672 bytes (per element)
UNSIGNED VARSMALLINT0 to 65,5352 bytes (per element)
VARINT-2,147,483,648 to 2,147,483,6474 bytes (per element)
UNSIGNED VARINT0 to 4,294,967,2954 bytes (per element)
VARBIGINT-9,223,372,036,854,775,808 to 9,223,372,036,854,775,8078 bytes (per element)
UNSIGNED VARBIGINT0 to 18,446,744,073,709,551,6158 bytes (per element)
VARFLOAT-3.4E+38 to 3.4E+384 bytes (per element)
VARDOUBLE-1.79E+308 to 1.79E+3088 bytes (per element)
VARCHAR0 to 2551 byte (per element)
OPAQUE0 to 2551 byte
ENUMERATION-9,223,372,036,854,775,808 to 9,223,372,036,854,775,8071, 2, 4 or 8 bytes
COMPOUNDVaries (depends on members)Varies (depends on members)

Table 6.3 – HDFql data types