> For the complete documentation index, see [llms.txt](https://docs.gaiodataos.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gaiodataos.com/gaio-dataos-spanish/herramientas/tareas/etl/crear-tabla.md).

# Crear Tabla

<figure><img src="/files/NIq2fZWaWzWDuoElOotc" alt=""><figcaption></figcaption></figure>

La tarea **Create Table** en Gaio DataOS permite definir y generar una nueva estructura de tabla directamente dentro de tu proyecto de datos. Es fundamental para crear capas intermedias o finales de almacenamiento en tus pipelines de datos.

***

## &#x20;Cómo usar

Sigue los pasos a continuación para crear manualmente una nueva tabla:

#### 1. Abrir la tarea Create Table

En el Studio, en el panel izquierdo bajo **Tasks > ETL**, haz clic en **Create Table**.

***

#### 2. Definir la tarea y el nombre de la tabla

* **Task label:** (opcional) Proporciona un nombre para este paso de creación para identificarlo fácilmente en tu flujo.
* **Result table:** Escribe el nombre de la tabla que deseas crear.

***

#### 3. Agregar columnas

Utiliza la interfaz en formato de grilla para definir la estructura de cada columna:

| Campo   | Descripción                                                                                               |
| ------- | --------------------------------------------------------------------------------------------------------- |
| Column  | Ingresa el nombre de la columna (ej.: `col_1`, `date_one`, `value`).                                      |
| Type    | Selecciona el tipo de dato (ej.: `String`, `Int64`, `Date`, `DateTime`, `Float64`, `Array`).              |
| Default | (Opcional) Define un valor por defecto (ej.: `today()`, `now()`), o un valor estático como `0` o `"N/A"`. |

Para agregar una columna, usa el botón **+**. Para eliminar una columna, haz clic en el ícono de papelera.

***

#### 4. Opcional: Eliminar tabla existente

Activa la casilla **Drop table** si deseas sobrescribir una tabla con el mismo nombre

{% hint style="warning" %}
Esto eliminará los datos existentes
{% endhint %}

***

#### 5. Ejecutar o guardar

* **Execute:** Crea la tabla inmediatamente.
* **Save:** Guarda la tarea para ejecutarla más adelante en el flujo.
* **Save and Execute:** Ejecuta la operación y la mantiene registrada en el pipeline.

***

### Buenas prácticas

* Verifica siempre la opción **Drop table** — úsala solo cuando estés seguro de que los datos anteriores pueden eliminarse.
* Usa valores por defecto para timestamps o valores estándar cuando sea necesario.
* Combina esta tarea con **Insert Table**, transformaciones y automatizaciones para construir pipelines de datos completos.


---

# 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:

```
GET https://docs.gaiodataos.com/gaio-dataos-spanish/herramientas/tareas/etl/crear-tabla.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
