# quantile_cont — DuckDB 2.0.0

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/duckdb-2.0.0/quantile_cont/
- JSON: /products/haybarn/functions/api/v1/duckdb-2.0.0/functions/quantile_cont.json
- Snapshot ID: duckdb-2.0.0
- Engine: duckdb v2.0.0
- Source ID: d54cbbe3df
- Binary SHA-256: 4d5d001f4b0a16c16f1bc83338153a70bec7e58f0cae0eec4b44b9b9afa0bef0
- Captured: 2026-11-06T18:35:28.343Z
- Source: https://github.com/duckdb/duckdb/releases/tag/v2.0.0
- Loaded extensions: autocomplete, core_functions, icu, json, parquet, shell

## 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 2.0.0-rc12, 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-d5d2b7f566a67481

Kind: aggregate. Parameter order: catalog-order.

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

Link: /products/haybarn/functions/releases/duckdb-2.0.0/quantile_cont/#overload-d5d2b7f566a67481

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

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

### overload-848c5922e8cca3db

Kind: aggregate. Parameter order: catalog-order.

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

Link: /products/haybarn/functions/releases/duckdb-2.0.0/quantile_cont/#overload-848c5922e8cca3db

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

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

### overload-d08de9a5e239f1dd

Kind: aggregate. Parameter order: catalog-order.

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

Link: /products/haybarn/functions/releases/duckdb-2.0.0/quantile_cont/#overload-d08de9a5e239f1dd

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

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

### overload-5f4ec07759a19642

Kind: aggregate. Parameter order: catalog-order.

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

Link: /products/haybarn/functions/releases/duckdb-2.0.0/quantile_cont/#overload-5f4ec07759a19642

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

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

### overload-13cddc4eb13a88c3

Kind: aggregate. Parameter order: catalog-order.

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

Link: /products/haybarn/functions/releases/duckdb-2.0.0/quantile_cont/#overload-13cddc4eb13a88c3

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

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

### overload-1ca91ed1f9ec284e

Kind: aggregate. Parameter order: catalog-order.

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

Link: /products/haybarn/functions/releases/duckdb-2.0.0/quantile_cont/#overload-1ca91ed1f9ec284e

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

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

### overload-8b6d5933402d6c88

Kind: aggregate. Parameter order: catalog-order.

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

Link: /products/haybarn/functions/releases/duckdb-2.0.0/quantile_cont/#overload-8b6d5933402d6c88

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

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

### overload-8d18ca4fdc9eb7bd

Kind: aggregate. Parameter order: catalog-order.

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

Link: /products/haybarn/functions/releases/duckdb-2.0.0/quantile_cont/#overload-8d18ca4fdc9eb7bd

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

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

### overload-ff6835f766a54ad2

Kind: aggregate. Parameter order: catalog-order.

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

Link: /products/haybarn/functions/releases/duckdb-2.0.0/quantile_cont/#overload-ff6835f766a54ad2

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

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

### overload-8e3432d3ce0035a1

Kind: aggregate. Parameter order: catalog-order.

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

Link: /products/haybarn/functions/releases/duckdb-2.0.0/quantile_cont/#overload-8e3432d3ce0035a1

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

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

### overload-643866d7a536832f

Kind: aggregate. Parameter order: catalog-order.

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

Link: /products/haybarn/functions/releases/duckdb-2.0.0/quantile_cont/#overload-643866d7a536832f

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

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

### overload-1146430f4c1a8aa2

Kind: aggregate. Parameter order: catalog-order.

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

Link: /products/haybarn/functions/releases/duckdb-2.0.0/quantile_cont/#overload-1146430f4c1a8aa2

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

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

### overload-b0fba56094246484

Kind: aggregate. Parameter order: catalog-order.

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

Link: /products/haybarn/functions/releases/duckdb-2.0.0/quantile_cont/#overload-b0fba56094246484

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

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

### overload-ed9f08e9e394ae90

Kind: aggregate. Parameter order: catalog-order.

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

Link: /products/haybarn/functions/releases/duckdb-2.0.0/quantile_cont/#overload-ed9f08e9e394ae90

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

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

### overload-5dd053afb2ebaf11

Kind: aggregate. Parameter order: catalog-order.

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

Link: /products/haybarn/functions/releases/duckdb-2.0.0/quantile_cont/#overload-5dd053afb2ebaf11

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

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

### overload-7b9779a550c67eb3

Kind: aggregate. Parameter order: catalog-order.

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

Link: /products/haybarn/functions/releases/duckdb-2.0.0/quantile_cont/#overload-7b9779a550c67eb3

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

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

### overload-07418776f219de99

Kind: aggregate. Parameter order: catalog-order.

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

Link: /products/haybarn/functions/releases/duckdb-2.0.0/quantile_cont/#overload-07418776f219de99

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

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

### overload-e3346bee935ec4aa

Kind: aggregate. Parameter order: catalog-order.

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

Link: /products/haybarn/functions/releases/duckdb-2.0.0/quantile_cont/#overload-e3346bee935ec4aa

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

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

### overload-bc06c2e1d5a959ad

Kind: aggregate. Parameter order: catalog-order.

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

Link: /products/haybarn/functions/releases/duckdb-2.0.0/quantile_cont/#overload-bc06c2e1d5a959ad

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

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

### overload-dd1c8749e3348b79

Kind: aggregate. Parameter order: catalog-order.

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

Link: /products/haybarn/functions/releases/duckdb-2.0.0/quantile_cont/#overload-dd1c8749e3348b79

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

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

### overload-17a2228f582c2b86

Kind: aggregate. Parameter order: catalog-order.

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

Link: /products/haybarn/functions/releases/duckdb-2.0.0/quantile_cont/#overload-17a2228f582c2b86

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

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

### overload-0824802678df01a5

Kind: aggregate. Parameter order: catalog-order.

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

Link: /products/haybarn/functions/releases/duckdb-2.0.0/quantile_cont/#overload-0824802678df01a5

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

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

### overload-cb5b49d7e195ac7e

Kind: aggregate. Parameter order: catalog-order.

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

Link: /products/haybarn/functions/releases/duckdb-2.0.0/quantile_cont/#overload-cb5b49d7e195ac7e

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

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

### overload-bbdd77cb462ff677

Kind: aggregate. Parameter order: catalog-order.

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

Link: /products/haybarn/functions/releases/duckdb-2.0.0/quantile_cont/#overload-bbdd77cb462ff677

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

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

### overload-021d37a251420b5e

Kind: aggregate. Parameter order: catalog-order.

```text
quantile_cont(x: TIMESTAMPTZ_NS, quantile: DOUBLE) → TIMESTAMPTZ_NS
```

Link: /products/haybarn/functions/releases/duckdb-2.0.0/quantile_cont/#overload-021d37a251420b5e

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | TIMESTAMPTZ_NS | not recorded |
| quantile | DOUBLE | not recorded |

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

### overload-cf61a585b2c16cbc

Kind: aggregate. Parameter order: catalog-order.

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

Link: /products/haybarn/functions/releases/duckdb-2.0.0/quantile_cont/#overload-cf61a585b2c16cbc

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

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

### overload-4e5cf9d8ac761d6b

Kind: aggregate. Parameter order: catalog-order.

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

Link: /products/haybarn/functions/releases/duckdb-2.0.0/quantile_cont/#overload-4e5cf9d8ac761d6b

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

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

### overload-dd11aeef89cfe144

Kind: aggregate. Parameter order: catalog-order.

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

Link: /products/haybarn/functions/releases/duckdb-2.0.0/quantile_cont/#overload-dd11aeef89cfe144

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | TINYINT | not recorded |
| quantile | 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-d5d2b7f566a67481, overload-848c5922e8cca3db, overload-d08de9a5e239f1dd, overload-5f4ec07759a19642, overload-13cddc4eb13a88c3, overload-1ca91ed1f9ec284e, overload-8b6d5933402d6c88, overload-8d18ca4fdc9eb7bd, overload-ff6835f766a54ad2, overload-8e3432d3ce0035a1, overload-643866d7a536832f, overload-1146430f4c1a8aa2, overload-b0fba56094246484, overload-ed9f08e9e394ae90, overload-5dd053afb2ebaf11, overload-7b9779a550c67eb3, overload-07418776f219de99, overload-e3346bee935ec4aa, overload-bc06c2e1d5a959ad, overload-dd1c8749e3348b79, overload-17a2228f582c2b86, overload-0824802678df01a5, overload-cb5b49d7e195ac7e, overload-bbdd77cb462ff677, overload-021d37a251420b5e, overload-cf61a585b2c16cbc, overload-4e5cf9d8ac761d6b, overload-dd11aeef89cfe144

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

## Runnable examples

Executed successfully in Haybarn WASM 2.0.0-rc12. 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-2.0.0-rc12 | present | 28 | [reference](/products/haybarn/functions/api/v1/haybarn-2.0.0-rc12/functions/quantile_cont.json) |
| haybarn-2.0.0-rc11 | present | 28 | [reference](/products/haybarn/functions/api/v1/haybarn-2.0.0-rc11/functions/quantile_cont.json) |
| haybarn-2.0.0-rc8 | present | 28 | [reference](/products/haybarn/functions/api/v1/haybarn-2.0.0-rc8/functions/quantile_cont.json) |
| haybarn-1.5.5-rc3 | present | 26 | [reference](/products/haybarn/functions/api/v1/haybarn-1.5.5-rc3/functions/quantile_cont.json) |
| haybarn-1.5.6-rc6 | present | 26 | [reference](/products/haybarn/functions/api/v1/haybarn-1.5.6-rc6/functions/quantile_cont.json) |
| duckdb-2.0.0 | present | 28 | [reference](/products/haybarn/functions/api/v1/duckdb-2.0.0/functions/quantile_cont.json) |
| duckdb-1.5.6 | present | 26 | [reference](/products/haybarn/functions/api/v1/duckdb-1.5.6/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).
