> ## Documentation Index
> Fetch the complete documentation index at: https://docs.firebolt.io/llms.txt
> Use this file to discover all available pages before exploring further.

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.firebolt.io/feedback

```json
{
  "path": "/reference-sql/functions-reference/array/array-slice",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

> Reference material for ARRAY_SLICE function

# ARRAY_SLICE

Returns a slice of the array based on the indicated offset and length.

## Syntax

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
ARRAY_SLICE(<array>, <start>[, <length>])
```

## Parameters

| Parameter  | Description                                 | Supported input types |
| :--------- | :------------------------------------------ | :-------------------- |
| `<array>`  | The array of data to be sliced              | `ARRAY`               |
| `<start>`  | Indicates starting point of the array slice | `INTEGER`             |
| `<length>` | The length of the required slice            | `INTEGER`             |

## Return Type

`ARRAY` of the same type as input array

## Example

The following example slices the `levels` array to a different length:

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
SELECT
	ARRAY_SLICE([ 1, 2, 3, 4, 5 ], 1, 3) AS levels;
```

**Returns**: `[1, 2, 3]`
