---
title: "OLAP ETL Task"
description: "Configure an OLAP ETL task in RavenDB Studio to export documents as Parquet files to S3, Azure, or local storage for analytics."
url: "https://docs.ravendb.net/7.2/studio/database/tasks/ongoing-tasks/olap-etl-task"
version: "7.2"
---

# OLAP ETL Task

> RavenDB publishes an official agent skill for coding assistants at https://docs.ravendb.net/skills/ravendb/SKILL.md (also installable with `npx skills add ravendb/skills`). The skill describes itself as: "Read this before writing any RavenDB query, client call or /databases/ request. Covers server setup, document modelling, the Node.js, .NET and Python clients, RQL, indexes, vector search and AI agents. Code written from recall tends to run and return the wrong rows, because RQL resembles SQL and the clients take field names as plain strings."

## OLAP ETL Task

> **Note**
>
> - The **OLAP ETL task** is an [ETL](https://docs.ravendb.net/7.2/server/ongoing-tasks/etl/basics.md) process that converts RavenDB data to the
>   [*Apache Parquet*](https://parquet.apache.org/docs/) file format, and sends
>   it to one or more of these destinations:
>   - [Amazon S3](https://aws.amazon.com/s3/)
>   - [Amazon Glacier](https://aws.amazon.com/glacier/)
>   - [Microsoft Azure](https://azure.microsoft.com/)
>   - [Google Cloud Platform](https://cloud.google.com/)
>   - File Transfer Protocol
>   - Local storage
>
> - This page explains how to create an OLAP ETL task using the studio. To
>   learn more about OLAP ETL tasks, and how to create one using the client API,
>   see [Ongoing Tasks: OLAP ETL](https://docs.ravendb.net/7.2/server/ongoing-tasks/etl/olap.md).
>
> - In this page:
>   - [Navigate to the OLAP ETL View](#navigate-to-the-olap-etl-view)
>   - [Define an OLAP ETL Task](#define-an-olap-etl-task)
>     - [Custom Partition Value](#custom-partition-value)
>     - [Run Frequency](#run-frequency)
>     - [OLAP Connection String](#olap-connection-string)
>     - [OLAP ETL Destinations](#olap-etl-destinations)
>     - [Transform Scripts](#transform-scripts)
>     - [Override ID column](#override-id-column)

## Create an OLAP ETL Task

To begin creating your OLAP ETL task:

!["Ongoing tasks view"](https://docs.ravendb.net/assets/images/ongoing-tasks-view-81805a67d18271aae9f5d64c46ce8819.png)

!["Task selection view"](https://docs.ravendb.net/assets/images/olap-etl-task-selection-view-987e46be6fba63c9860d4a6e99fc904d.png)

## Define an OLAP ETL Task

!["New OLAP ETL task"](https://docs.ravendb.net/assets/images/olap-etl-5-47511af99d05c8663773975cae2e1e96.png)

1. The name of this ETL task (optional).
2. Choose which of the cluster nodes will run this task (optional).

### Custom Partition Value

!["Custom partition value"](https://raw.githubusercontent.com/ravendb/docs/main/docs/studio/database/tasks/ongoing-tasks/assets/olap-etl-2.png)

- A custom partition can be defined to differentiate parquet file locations when
  using the same connection string in multiple OLAP ETL tasks.
- The custom partition **name** is defined inside the [transformation scripts](#transform-scripts).
- The custom partition **value** is defined in the input box above.
- The custom partition value is referenced in the transform script as
  `$customPartitionValue`.
- A parquet file path with custom partition will have the following format:  
  `{RemoteFolderName}/{CollectionName}/{customPartitionName=$customPartitionValue}`
- Learn more in [Ongoing Tasks: OLAP ETL](https://docs.ravendb.net/7.2/server/ongoing-tasks/etl/olap.md#the-custom-partition-value).

### Run Frequency

!["Task run frequency"](https://docs.ravendb.net/assets/images/olap-etl-3-36085ab7362141c6ffa7f149b9575135.png)

1. **Run Frequency**  
   Select the exact timing and frequency at which this task should run from the dropdown menu.
   - The maximum frequency is once every minute.
2. **Custom**  
   Select 'custom' from the dropdown menu to schedule the task using your own customized
   [cron expression](https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm).

### OLAP Connection String

- Select an existing connection string from the available dropdown or

!["OLAP connection string"](https://raw.githubusercontent.com/ravendb/docs/main/docs/studio/database/tasks/ongoing-tasks/assets/olap-etl-4.png)

- **Create a new OLAP connection string**  
  Toggle on to create and define a new OLAP connection string for this ETL task
  - If you choose to create a new connection string you can enter its name and destination here.
  - Multiple destinations can be defined.

### OLAP ETL Destinations

Select one or more destinations from this list. Clicking each toggle reveals further
fields and configuration options for each destination.

!["OLAP ETL destinations"](https://docs.ravendb.net/assets/images/olap-etl-7-ee166c0574396746ade031b828902afe.png)

If you use an [Amazon S3](https://aws.amazon.com/s3/) custom host:
![ForcePathStyle](https://docs.ravendb.net/assets/images/studio-force-path-style-0dc79a0ca9ea23c3dd6b7d3ca29bb6a4.png)

- a- **Use a custom S3 host**  
  Toggle to provide a custom server URL.
- b- **Force path style**  
  Toggle to change the default S3 bucket [path convention](https://aws.amazon.com/blogs/aws/amazon-s3-path-deprecation-plan-the-rest-of-the-story/) on your custom Amazon S3 host.

### Transform Scripts

You can edit, delete or add to the list of existing transform scripts.

!["List of transform scripts"](https://docs.ravendb.net/assets/images/olap-etl-8-258b7995d6e9f7411581a4d0fb12f89b.png)

1. Add a new transform script.
2. Edit an existing transform script.

Create and edit transform Javascripts on the right side of the OLAP ETL Studio view.

!["Define Transform Script"](https://docs.ravendb.net/assets/images/olap-etl-9-6a08043b177424ea8fd717ee3522c7b0.png)

1. **Name**  
   The script name is generated once the 'Add' button is clicked. The name of a script
   is always in the format: "Script #\[order of script creation]".
2. **The transform script**  
   Learn more about [transformation scripts](https://docs.ravendb.net/7.2/server/ongoing-tasks/etl/raven.md#transformation-script-options).
3. **Select a collection**  
   (or enter a new collection name) on which this script will operate.
4. **Collections Selected**  
   The selected collection names on which the script operates.
5. **Apply script to documents from beginning of time (Reset)**
   - If selected, this script will operate on all existing documents in the
     specified collections the first time the task runs.
   - When not selected, this script operates only on new documents.

> **Info**
>
> Every parquet table that is created by a transform script includes two columns that
> aren't specified in the script:
>
> - `_id`  
>   Contains the source document ID. The default name used for this column is `_id`.  
>   You can override this name in the task definition - see more
>   [below](#override-id-column).
> - `_lastModifiedTime`  
>   The value of the `last-modified` field in a document's metadata. Represented in unix time.

### Override ID Column

!["Override ID column"](https://docs.ravendb.net/assets/images/olap-etl-8-258b7995d6e9f7411581a4d0fb12f89b.png)

These settings allow you to specify a different column name for the document ID column
in a parquet file. The default ID column name is `_id`.

1. Add a new setting.
2. Select the name of the parquet table for which you want to override the ID column.
3. Select the name for the table's ID column.
4. Click to add this setting.
5. Click to edit this setting.
