> For the complete documentation index, see [llms.txt](https://upsolver.gitbook.io/content/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://upsolver.gitbook.io/content/reference-1/functions-and-operators/data-types.md).

# Data Types

When ingesting data from external applications, Upsolver converts the incoming data into its supported data types. Also, any transformations performed within the data lake will utilize these supported data types:

* [Boolean](#id1)
* [Integer](#integer)
* [Floating-point](#floating-point)
* [String](#string)
* [Date and time](#date-and-time)
* [Structural](#structural)

## Boolean <a href="#id1" id="id1"></a>

#### `BOOLEAN` <a href="#id1" id="id1"></a>

This type captures Boolean values `true` and `false`.

## Integer <a href="#integer" id="integer"></a>

#### `BIGINT` <a href="#bigint" id="bigint"></a>

A 64-bit signed two’s complement integer with a minimum value of `-2^63` and a maximum value of `2^63 - 1`.

## Floating-point <a href="#floating-point" id="floating-point"></a>

#### `DOUBLE` <a href="#double" id="double"></a>

A double is a 64-bit inexact, variable-precision implementing the IEEE Standard 754 for Binary Floating-Point Arithmetic.

## String <a href="#string" id="string"></a>

#### `STRING`

Variable length of characters.

## Date and time <a href="#date-and-time" id="date-and-time"></a>

#### `DATE` <a href="#date" id="date"></a>

Calendar date (year, month, day).

Example: `DATE '2001-08-22'`

#### `TIMESTAMP` <a href="#timestamp" id="timestamp"></a>

Instant in time that includes the date and time of day without a time zone. Supported up to milliseconds precision.

Example: `TIMESTAMP '2001-08-22 03:04:05.321'`

#### `INTERVAL YEAR TO MONTH` <a href="#interval-year-to-month" id="interval-year-to-month"></a>

Span of years and months.

Note that creating columns of this type are not supported. This is usually used when to create a time interval for filtering purposes.

Example: `WHERE partition_date > DATE '2022-08-01' - INTERVAL '3' MONTH`

#### `INTERVAL DAY TO SECOND` <a href="#interval-day-to-second" id="interval-day-to-second"></a>

Span of days, hours, minutes, seconds and milliseconds.

Note that creating columns of this type are not supported. This is usually used when to create a time interval for filtering purposes.

Example: `WHERE $commit_time BETWEEN run_start_time() - INTERVAL '2' DAY and run_end_time()`

## Structural <a href="#structural" id="structural"></a>

#### `ARRAY` <a href="#array" id="array"></a>

An array of the given component type.

Note that arrays that only contain null values are treated as `null`; while for arrays that contain both null and non-null values, Upsolver ignores those null values when working with the array.

Examples: `ARRAY[1, 2, 3], [1, 2, 3]`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://upsolver.gitbook.io/content/reference-1/functions-and-operators/data-types.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
