> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-8a08bda2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> Permite realizar consultas sobre datos expuestos a través de un servidor Apache Arrow Flight.

# arrowFlight

Permite realizar consultas sobre datos expuestos a través de un servidor [Apache Arrow Flight](/es/concepts/features/interfaces/arrowflight).

**Sintaxis**

```sql theme={null}
arrowFlight('host:port', 'dataset_name' [, 'username', 'password'])
```

**Argumentos**

* `host:port` — Dirección del servidor Arrow Flight. [String](/es/reference/data-types/string).
* `dataset_name` — Nombre del conjunto de datos o descriptor disponible en el servidor Arrow Flight. [String](/es/reference/data-types/string).
* `username` - Nombre de usuario que se utilizará con la autenticación básica HTTP.
* `password` - Contraseña que se utilizará con la autenticación básica HTTP.
  Si no se especifican `username` y `password`, significa que no se utiliza autenticación
  (esto solo funcionará si el servidor Arrow Flight lo permite).

**Valor devuelto**

* Un objeto de tabla que representa el conjunto de datos remoto. El esquema se infiere a partir de la respuesta de Arrow Flight.

**Ejemplo**

```sql title="Query" theme={null}
SELECT * FROM arrowFlight('127.0.0.1:9005', 'sample_dataset') ORDER BY id;
```

```text title="Response" theme={null}
┌─id─┬─name────┬─value─┐
│  1 │ foo     │ 42.1  │
│  2 │ bar     │ 13.3  │
│  3 │ baz     │ 77.0  │
└────┴─────────┴───────┘
```

**Véase también**

* [Arrow Flight](/es/reference/engines/table-engines/integrations/arrowflight) como motor de tabla
* [Apache Arrow Flight SQL](https://arrow.apache.org/docs/format/FlightSql.html)
