Data Types#
Describes the data type of a value in the table ecosystem. Instances of this class can be used to declare input and/or output types of operations.
DataType
has two responsibilities: declaring a logical type and giving hints
about the physical representation of data to the optimizer. While the logical type is mandatory,
hints are optional but useful at the edges to other APIs.
The logical type is independent of any physical representation and is close to the “data type” terminology of the SQL standard.
Physical hints are required at the edges of the table ecosystem. Hints indicate the data format that an implementation expects.
Data type for representing untyped null (None) values. |
|
|
Data type of a fixed-length character string. |
|
Data type of a variable-length character string. |
|
Data type of a variable-length character string with defined maximum length. |
|
Data type of a boolean with a (possibly) three-valued logic of TRUE, FALSE, UNKNOWN. |
|
Data type of a fixed-length binary string (=a sequence of bytes). |
|
Data type of a variable-length binary string (=a sequence of bytes) |
|
Data type of a variable-length binary string (=a sequence of bytes) with defined maximum length. |
|
Data type of a decimal number with fixed precision and scale. |
|
Data type of a 1-byte signed integer with values from -128 to 127. |
|
Data type of a 2-byte signed integer with values from -32,768 to 32,767. |
|
Data type of a 2-byte signed integer with values from -2,147,483,648 to 2,147,483,647. |
|
Data type of an 8-byte signed integer with values from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807. |
|
Data type of a 4-byte single precision floating point number. |
|
Data type of an 8-byte double precision floating point number. |
|
Data type of a date consisting of year-month-day with values ranging from |
|
Data type of a time WITHOUT time zone. |
|
Data type of a timestamp WITHOUT time zone. |
Data type of a timestamp WITH LOCAL time zone. |
|
|
Data type of a timestamp WITH LOCAL time zone. |
|
Data type of an array of elements with same subtype. |
|
Data type of a |
|
Data type of an associative array that maps keys to values. |
|
Data type of a |
|
Data type of a multiset (=bag). |
|
Data type of a sequence of fields. |
|
Field definition with field name, data type, and a description. |
|
Resolution in seconds and (possibly) fractional seconds. |
Resolution in minutes. |
|
Resolution in hours. |
|
|
Resolution in days. |
Resolution in months. |
|
|
Resolution in years with 2 digits for the number of years by default. |
|
Data type of a temporal interval. |