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

# CURRENT_ENGINE

> Reference material for CURRENT_ENGINE function

Returns the name of the engine that runs the query. The name is refreshed at most once per minute, so a query run just after the engine is renamed may still return the old name.

> [!NOTE]
>
> `CURRENT_ENGINE` is not supported in self-managed deployments. It also fails if the engine has not been able to look up its name since it started.

## Syntax

```sql theme={"theme":{"light":"css-variables","dark":"css-variables"}}
CURRENT_ENGINE()
```

## Return Types

`TEXT`

## Example

The following example returns the row of [information\_schema.engines](https://docs.firebolt.io/reference-sql/information-schema/engines.md) for the engine that runs the query:

```sql theme={"theme":{"light":"css-variables","dark":"css-variables"}}
SELECT engine_name, status, clusters
FROM information_schema.engines
WHERE engine_name = CURRENT_ENGINE();
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.