# quantile_cont — Haybarn WASM 1.5.5-rc3

Returns the interpolated quantile number between 0 and 1 . If pos is a LIST of FLOATs, then the result is a LIST of the corresponding interpolated quantiles.	

- Reference: /products/haybarn/functions/releases/haybarn-1.5.5-rc3/quantile_cont/
- JSON: /products/haybarn/functions/api/v1/haybarn-1.5.5-rc3/functions/quantile_cont.json
- Snapshot ID: haybarn-1.5.5-rc3
- Engine: haybarn v1.5.6-dev149
- Source ID: 105edd31b5
- Binary SHA-256: 426638bc374fcc542fea93b251f885bfb7d221c68fcc0a5a81cc565d7e6ca180
- Captured: 2026-09-06T00:23:30.515Z
- Source: https://www.npmjs.com/package/@haybarn/haybarn-wasm/v/1.5.5-rc3
- Loaded extensions: core_functions, icu, json, parquet

## Interpretation

- Choose a snapshot matching the target engine and build. The default is captured from the published Haybarn WASM package used by the browser playground. Historical native snapshots are also available.
- Availability is an observation in the recorded build and extension profile, not a guarantee of support in every installation or in WASM.
- Types and descriptions are declarations from duckdb_functions(). Binding can specialize result types. Null means not supplied by the catalog; do not invent defaults, optionality, argument mode, or table output columns.
- Raw parameter arrays preserve catalog order for scalar/aggregate/macro functions. Raw table arguments are alphabetical. Use callingConvention for engine-confirmed positional order and named arguments; null modes are unrecorded. Named does not mean optional. Macro defaults and special named variadic behavior are not supplied by duckdb_functions().
- Catalog examples are source material and may require data or extensions. runnableExamples contains separately verified SQL for the pinned WASM package; sample-data adaptations and guide examples are labeled separately.
- Guide annotations and recipes are separate editorial content. The browser runner always uses Haybarn WASM 1.5.5-rc3, independently of the documentation snapshot.
- All URLs beginning with / are relative to the origin hosting this document. Exports require no JavaScript, cookies, API key, or browser engine.

## Overloads

### overload-42cf37cac778a5cd

Kind: aggregate. Parameter order: catalog-order.

```text
quantile_cont(x: BIGINT, pos: DOUBLE) → BIGINT
```

Link: /products/haybarn/functions/releases/haybarn-1.5.5-rc3/quantile_cont/#overload-42cf37cac778a5cd

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | BIGINT | not recorded |
| pos | DOUBLE | not recorded |

Declared return type: BIGINT. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-73dd653ec6512094

Kind: aggregate. Parameter order: catalog-order.

```text
quantile_cont(x: BIGINT, pos: DOUBLE[]) → BIGINT
```

Link: /products/haybarn/functions/releases/haybarn-1.5.5-rc3/quantile_cont/#overload-73dd653ec6512094

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | BIGINT | not recorded |
| pos | DOUBLE[] | not recorded |

Declared return type: BIGINT. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-71f26182bfa6795a

Kind: aggregate. Parameter order: catalog-order.

```text
quantile_cont(x: DATE, pos: DOUBLE) → DATE
```

Link: /products/haybarn/functions/releases/haybarn-1.5.5-rc3/quantile_cont/#overload-71f26182bfa6795a

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | DATE | not recorded |
| pos | DOUBLE | not recorded |

Declared return type: DATE. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-108b6c43bb8392d3

Kind: aggregate. Parameter order: catalog-order.

```text
quantile_cont(x: DATE, pos: DOUBLE[]) → DATE
```

Link: /products/haybarn/functions/releases/haybarn-1.5.5-rc3/quantile_cont/#overload-108b6c43bb8392d3

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | DATE | not recorded |
| pos | DOUBLE[] | not recorded |

Declared return type: DATE. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-a7057206072e670b

Kind: aggregate. Parameter order: catalog-order.

```text
quantile_cont(x: DECIMAL, pos: DOUBLE) → DECIMAL
```

Link: /products/haybarn/functions/releases/haybarn-1.5.5-rc3/quantile_cont/#overload-a7057206072e670b

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | DECIMAL | not recorded |
| pos | DOUBLE | not recorded |

Declared return type: DECIMAL. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-369e7804430b08a7

Kind: aggregate. Parameter order: catalog-order.

```text
quantile_cont(x: DECIMAL, pos: DOUBLE[]) → DECIMAL
```

Link: /products/haybarn/functions/releases/haybarn-1.5.5-rc3/quantile_cont/#overload-369e7804430b08a7

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | DECIMAL | not recorded |
| pos | DOUBLE[] | not recorded |

Declared return type: DECIMAL. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-f643ac9224313e66

Kind: aggregate. Parameter order: catalog-order.

```text
quantile_cont(x: DOUBLE, pos: DOUBLE) → DOUBLE
```

Link: /products/haybarn/functions/releases/haybarn-1.5.5-rc3/quantile_cont/#overload-f643ac9224313e66

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | DOUBLE | not recorded |
| pos | DOUBLE | not recorded |

Declared return type: DOUBLE. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-82dee5b06f1f5f44

Kind: aggregate. Parameter order: catalog-order.

```text
quantile_cont(x: DOUBLE, pos: DOUBLE[]) → DOUBLE
```

Link: /products/haybarn/functions/releases/haybarn-1.5.5-rc3/quantile_cont/#overload-82dee5b06f1f5f44

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | DOUBLE | not recorded |
| pos | DOUBLE[] | not recorded |

Declared return type: DOUBLE. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-07a9369641c77c3a

Kind: aggregate. Parameter order: catalog-order.

```text
quantile_cont(x: FLOAT, pos: DOUBLE) → FLOAT
```

Link: /products/haybarn/functions/releases/haybarn-1.5.5-rc3/quantile_cont/#overload-07a9369641c77c3a

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | FLOAT | not recorded |
| pos | DOUBLE | not recorded |

Declared return type: FLOAT. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-7bb02fb4d5690022

Kind: aggregate. Parameter order: catalog-order.

```text
quantile_cont(x: FLOAT, pos: DOUBLE[]) → FLOAT
```

Link: /products/haybarn/functions/releases/haybarn-1.5.5-rc3/quantile_cont/#overload-7bb02fb4d5690022

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | FLOAT | not recorded |
| pos | DOUBLE[] | not recorded |

Declared return type: FLOAT. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-bef60670d373c3b0

Kind: aggregate. Parameter order: catalog-order.

```text
quantile_cont(x: HUGEINT, pos: DOUBLE) → HUGEINT
```

Link: /products/haybarn/functions/releases/haybarn-1.5.5-rc3/quantile_cont/#overload-bef60670d373c3b0

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | HUGEINT | not recorded |
| pos | DOUBLE | not recorded |

Declared return type: HUGEINT. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-082c32ea05f2402b

Kind: aggregate. Parameter order: catalog-order.

```text
quantile_cont(x: HUGEINT, pos: DOUBLE[]) → HUGEINT
```

Link: /products/haybarn/functions/releases/haybarn-1.5.5-rc3/quantile_cont/#overload-082c32ea05f2402b

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | HUGEINT | not recorded |
| pos | DOUBLE[] | not recorded |

Declared return type: HUGEINT. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-2b6bfd3f83f63eb6

Kind: aggregate. Parameter order: catalog-order.

```text
quantile_cont(x: INTEGER, pos: DOUBLE) → INTEGER
```

Link: /products/haybarn/functions/releases/haybarn-1.5.5-rc3/quantile_cont/#overload-2b6bfd3f83f63eb6

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | INTEGER | not recorded |
| pos | DOUBLE | not recorded |

Declared return type: INTEGER. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-ab613deff22c7ed2

Kind: aggregate. Parameter order: catalog-order.

```text
quantile_cont(x: INTEGER, pos: DOUBLE[]) → INTEGER
```

Link: /products/haybarn/functions/releases/haybarn-1.5.5-rc3/quantile_cont/#overload-ab613deff22c7ed2

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | INTEGER | not recorded |
| pos | DOUBLE[] | not recorded |

Declared return type: INTEGER. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-8dda9b4e5870c208

Kind: aggregate. Parameter order: catalog-order.

```text
quantile_cont(x: SMALLINT, pos: DOUBLE) → SMALLINT
```

Link: /products/haybarn/functions/releases/haybarn-1.5.5-rc3/quantile_cont/#overload-8dda9b4e5870c208

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | SMALLINT | not recorded |
| pos | DOUBLE | not recorded |

Declared return type: SMALLINT. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-f0a5d33798e75b7c

Kind: aggregate. Parameter order: catalog-order.

```text
quantile_cont(x: SMALLINT, pos: DOUBLE[]) → SMALLINT
```

Link: /products/haybarn/functions/releases/haybarn-1.5.5-rc3/quantile_cont/#overload-f0a5d33798e75b7c

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | SMALLINT | not recorded |
| pos | DOUBLE[] | not recorded |

Declared return type: SMALLINT. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-70c393f6571648cc

Kind: aggregate. Parameter order: catalog-order.

```text
quantile_cont(x: TIME WITH TIME ZONE, pos: DOUBLE) → TIME WITH TIME ZONE
```

Link: /products/haybarn/functions/releases/haybarn-1.5.5-rc3/quantile_cont/#overload-70c393f6571648cc

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | TIME WITH TIME ZONE | not recorded |
| pos | DOUBLE | not recorded |

Declared return type: TIME WITH TIME ZONE. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-3282a72e6966ac4c

Kind: aggregate. Parameter order: catalog-order.

```text
quantile_cont(x: TIME WITH TIME ZONE, pos: DOUBLE[]) → TIME WITH TIME ZONE
```

Link: /products/haybarn/functions/releases/haybarn-1.5.5-rc3/quantile_cont/#overload-3282a72e6966ac4c

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | TIME WITH TIME ZONE | not recorded |
| pos | DOUBLE[] | not recorded |

Declared return type: TIME WITH TIME ZONE. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-7b019e64084f3f37

Kind: aggregate. Parameter order: catalog-order.

```text
quantile_cont(x: TIME, pos: DOUBLE) → TIME
```

Link: /products/haybarn/functions/releases/haybarn-1.5.5-rc3/quantile_cont/#overload-7b019e64084f3f37

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | TIME | not recorded |
| pos | DOUBLE | not recorded |

Declared return type: TIME. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-11d1718df42be998

Kind: aggregate. Parameter order: catalog-order.

```text
quantile_cont(x: TIME, pos: DOUBLE[]) → TIME
```

Link: /products/haybarn/functions/releases/haybarn-1.5.5-rc3/quantile_cont/#overload-11d1718df42be998

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | TIME | not recorded |
| pos | DOUBLE[] | not recorded |

Declared return type: TIME. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-774e7086c80eddf3

Kind: aggregate. Parameter order: catalog-order.

```text
quantile_cont(x: TIMESTAMP WITH TIME ZONE, pos: DOUBLE) → TIMESTAMP WITH TIME ZONE
```

Link: /products/haybarn/functions/releases/haybarn-1.5.5-rc3/quantile_cont/#overload-774e7086c80eddf3

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | TIMESTAMP WITH TIME ZONE | not recorded |
| pos | DOUBLE | not recorded |

Declared return type: TIMESTAMP WITH TIME ZONE. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-34a5ad36de72fcf8

Kind: aggregate. Parameter order: catalog-order.

```text
quantile_cont(x: TIMESTAMP WITH TIME ZONE, pos: DOUBLE[]) → TIMESTAMP WITH TIME ZONE
```

Link: /products/haybarn/functions/releases/haybarn-1.5.5-rc3/quantile_cont/#overload-34a5ad36de72fcf8

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | TIMESTAMP WITH TIME ZONE | not recorded |
| pos | DOUBLE[] | not recorded |

Declared return type: TIMESTAMP WITH TIME ZONE. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-56130444bf8f9ab8

Kind: aggregate. Parameter order: catalog-order.

```text
quantile_cont(x: TIMESTAMP, pos: DOUBLE) → TIMESTAMP
```

Link: /products/haybarn/functions/releases/haybarn-1.5.5-rc3/quantile_cont/#overload-56130444bf8f9ab8

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | TIMESTAMP | not recorded |
| pos | DOUBLE | not recorded |

Declared return type: TIMESTAMP. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-6843122bb533eeb3

Kind: aggregate. Parameter order: catalog-order.

```text
quantile_cont(x: TIMESTAMP, pos: DOUBLE[]) → TIMESTAMP
```

Link: /products/haybarn/functions/releases/haybarn-1.5.5-rc3/quantile_cont/#overload-6843122bb533eeb3

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | TIMESTAMP | not recorded |
| pos | DOUBLE[] | not recorded |

Declared return type: TIMESTAMP. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-8f8808437b708387

Kind: aggregate. Parameter order: catalog-order.

```text
quantile_cont(x: TINYINT, pos: DOUBLE) → TINYINT
```

Link: /products/haybarn/functions/releases/haybarn-1.5.5-rc3/quantile_cont/#overload-8f8808437b708387

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | TINYINT | not recorded |
| pos | DOUBLE | not recorded |

Declared return type: TINYINT. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-c975a27f079d1266

Kind: aggregate. Parameter order: catalog-order.

```text
quantile_cont(x: TINYINT, pos: DOUBLE[]) → TINYINT
```

Link: /products/haybarn/functions/releases/haybarn-1.5.5-rc3/quantile_cont/#overload-c975a27f079d1266

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | TINYINT | not recorded |
| pos | DOUBLE[] | not recorded |

Declared return type: TINYINT. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.


## Guide recipes

No guide recipes.

## Engine catalog examples

Source examples may require additional data or extensions. Expressions are wrapped in SELECT; execution verification is not recorded.

Reported for: overload-42cf37cac778a5cd, overload-73dd653ec6512094, overload-71f26182bfa6795a, overload-108b6c43bb8392d3, overload-a7057206072e670b, overload-369e7804430b08a7, overload-f643ac9224313e66, overload-82dee5b06f1f5f44, overload-07a9369641c77c3a, overload-7bb02fb4d5690022, overload-bef60670d373c3b0, overload-082c32ea05f2402b, overload-2b6bfd3f83f63eb6, overload-ab613deff22c7ed2, overload-8dda9b4e5870c208, overload-f0a5d33798e75b7c, overload-70c393f6571648cc, overload-3282a72e6966ac4c, overload-7b019e64084f3f37, overload-11d1718df42be998, overload-774e7086c80eddf3, overload-34a5ad36de72fcf8, overload-56130444bf8f9ab8, overload-6843122bb533eeb3, overload-8f8808437b708387, overload-c975a27f079d1266

```sql
SELECT quantile_cont(x, 0.5);
```

## Runnable examples

Executed successfully in Haybarn WASM 1.5.5-rc3. Sample data and guide examples are separate from the original catalog.

```sql
SELECT quantile_cont(x, 0.5)
FROM (VALUES
  (10),
  (20),
  (NULL)
) AS sample("x");
```

## Additional DuckDB documentation

- [Aggregate Functions](https://duckdb.org/docs/current/sql/functions/aggregates#quantile_contx-pos)

## In other engines

### BigQuery: percentile_cont()



BigQuery:

```sql
SELECT PERCENTILE_CONT(x, 0.5 RESPECT NULLS) OVER ()
```

Haybarn / DuckDB:

```sql
SELECT QUANTILE_CONT(x, 0.5) OVER ()
```

Translation from [SQLGlot](https://github.com/tobymao/sqlglot/blob/3086608e6fd4c41c02dfba47171608d2b193fce2/tests/dialects/test_bigquery.py#L754).

## Observed availability

| Snapshot | Observed | Overloads | JSON |
| --- | --- | --- | --- |
| haybarn-1.5.5-rc3 | present | 26 | [reference](/products/haybarn/functions/api/v1/haybarn-1.5.5-rc3/functions/quantile_cont.json) |
| duckdb-1.5.5 | present | 26 | [reference](/products/haybarn/functions/api/v1/duckdb-1.5.5/functions/quantile_cont.json) |
| duckdb-1.4.4 | present | 26 | [reference](/products/haybarn/functions/api/v1/duckdb-1.4.4/functions/quantile_cont.json) |
| duckdb-1.3.2 | present | 26 | [reference](/products/haybarn/functions/api/v1/duckdb-1.3.2/functions/quantile_cont.json) |

Engine catalog documentation is derived from MIT-licensed Haybarn and DuckDB. [Notices](/third-party-notices.txt).
