Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ Returns the logarithm of `x` based on base `b`.
## Syntax

```sql
LOG(<b>,<x>)
LOG(<b>[, <x>])
```

## Parameters

| Parameter | Description |
|-----------|------------|
| `<b>` | Base should be greater than 0 and not be exactly 1.0 |
| `<x>` | Antilogarithm should be greater than 0 |
| `<x>` | optional, Antilogarithm should be greater than 0, default value is e |

## Return value

Expand All @@ -42,6 +42,18 @@ select log(5,1);
+---------------+
```

```sql
select log(3),ln(3);
```

```text
+--------------------+--------------------+
| log(3) | ln(3) |
+--------------------+--------------------+
| 1.0986122886681098 | 1.0986122886681098 |
+--------------------+--------------------+
```

```sql
select log(3,20);
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
## 语法

```sql
LOG(<b>,<x>)
LOG(<b>[, <x>])
```

## 参数

| 参数 | 说明 |
|-------| -- |
| `<b>` | 底数 必须大于 0 且不等于 1 |
| `<x>` | 真数 必须大于 0 |
| `<x>` | 可选,真数必须大于 0,默认为自然数e |

## 返回值

Expand All @@ -42,6 +42,18 @@ select log(5,1);
+---------------+
```

```sql
select log(3),ln(3);
```

```text
+--------------------+--------------------+
| log(3) | ln(3) |
+--------------------+--------------------+
| 1.0986122886681098 | 1.0986122886681098 |
+--------------------+--------------------+
```

```sql
select log(3,20);
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
## 语法

```sql
LOG(<b>,<x>)
LOG(<b>[, <x>])
```

## 参数

| 参数 | 说明 |
|-------| -- |
| `<b>` | 底数 必须大于 0 且不等于 1 |
| `<x>` | 真数 必须大于 0 |
| `<x>` | 可选,真数必须大于 0,默认为自然数e |

## 返回值

Expand All @@ -42,6 +42,18 @@ select log(5,1);
+---------------+
```

```sql
select log(3),ln(3);
```

```text
+--------------------+--------------------+
| log(3) | ln(3) |
+--------------------+--------------------+
| 1.0986122886681098 | 1.0986122886681098 |
+--------------------+--------------------+
```

```sql
select log(3,20);
```
Expand Down
66 changes: 64 additions & 2 deletions sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -1711,17 +1711,79 @@
"type": "category",
"label": "Analytic (Window) Functions",
"items": [
"sql-manual/sql-functions/window-functions/overview",
"sql-manual/sql-functions/window-functions/cume-dist",
"sql-manual/sql-functions/window-functions/dense-rank",
"sql-manual/sql-functions/window-functions/first-value",
"sql-manual/sql-functions/window-functions/lag",
"sql-manual/sql-functions/window-functions/last-value",
"sql-manual/sql-functions/window-functions/lead",
"sql-manual/sql-functions/window-functions/ntile",
"sql-manual/sql-functions/window-functions/overview",
"sql-manual/sql-functions/window-functions/percent-rank",
"sql-manual/sql-functions/window-functions/rank",
"sql-manual/sql-functions/window-functions/row-number"
"sql-manual/sql-functions/window-functions/row-number",
"sql-manual/sql-functions/window-functions/any-value",
"sql-manual/sql-functions/window-functions/approx-count-distinct",
"sql-manual/sql-functions/window-functions/approx-top-k",
"sql-manual/sql-functions/window-functions/approx-top-sum",
"sql-manual/sql-functions/window-functions/array-agg",
"sql-manual/sql-functions/window-functions/avg",
"sql-manual/sql-functions/window-functions/avg-weighted",
"sql-manual/sql-functions/window-functions/bitmap-agg",
"sql-manual/sql-functions/window-functions/bitmap-intersect",
"sql-manual/sql-functions/window-functions/bitmap-union",
"sql-manual/sql-functions/window-functions/bitmap-union-count",
"sql-manual/sql-functions/window-functions/bitmap-union-int",
"sql-manual/sql-functions/window-functions/collect-list",
"sql-manual/sql-functions/window-functions/collect-set",
"sql-manual/sql-functions/window-functions/corr",
"sql-manual/sql-functions/window-functions/count",
"sql-manual/sql-functions/window-functions/count-by-enum",
"sql-manual/sql-functions/window-functions/covar",
"sql-manual/sql-functions/window-functions/covar-samp",
"sql-manual/sql-functions/window-functions/group-array-intersect",
"sql-manual/sql-functions/window-functions/group-bit-and",
"sql-manual/sql-functions/window-functions/group-bit-or",
"sql-manual/sql-functions/window-functions/group-bit-xor",
"sql-manual/sql-functions/window-functions/group-bitmap-xor",
"sql-manual/sql-functions/window-functions/group-concat",
"sql-manual/sql-functions/window-functions/grouping",
"sql-manual/sql-functions/window-functions/grouping-id",
"sql-manual/sql-functions/window-functions/histogram",
"sql-manual/sql-functions/window-functions/hll-raw-agg",
"sql-manual/sql-functions/window-functions/hll-union-agg",
"sql-manual/sql-functions/window-functions/intersect-count",
"sql-manual/sql-functions/window-functions/kurt",
"sql-manual/sql-functions/window-functions/linear-histogram",
"sql-manual/sql-functions/window-functions/map-agg",
"sql-manual/sql-functions/window-functions/max",
"sql-manual/sql-functions/window-functions/max-by",
"sql-manual/sql-functions/window-functions/median",
"sql-manual/sql-functions/window-functions/min",
"sql-manual/sql-functions/window-functions/min-by",
"sql-manual/sql-functions/window-functions/percentile",
"sql-manual/sql-functions/window-functions/percentile-approx",
"sql-manual/sql-functions/window-functions/percentile-array",
"sql-manual/sql-functions/window-functions/percentile_approx_weighted",
"sql-manual/sql-functions/window-functions/quantile-union",
"sql-manual/sql-functions/window-functions/regr-intercept",
"sql-manual/sql-functions/window-functions/regr-slope",
"sql-manual/sql-functions/window-functions/regr_intercept",
"sql-manual/sql-functions/window-functions/regr_slope",
"sql-manual/sql-functions/window-functions/retention",
"sql-manual/sql-functions/window-functions/sequence-count",
"sql-manual/sql-functions/window-functions/sequence-match",
"sql-manual/sql-functions/window-functions/skew",
"sql-manual/sql-functions/window-functions/stddev",
"sql-manual/sql-functions/window-functions/stddev-samp",
"sql-manual/sql-functions/window-functions/sum",
"sql-manual/sql-functions/window-functions/sum0",
"sql-manual/sql-functions/window-functions/topn",
"sql-manual/sql-functions/window-functions/topn-array",
"sql-manual/sql-functions/window-functions/topn-weighted",
"sql-manual/sql-functions/window-functions/var-samp",
"sql-manual/sql-functions/window-functions/variance",
"sql-manual/sql-functions/window-functions/window-funnel"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ Returns the logarithm of `x` based on base `b`.
## Syntax

```sql
LOG(<b>,<x>)
LOG(<b>[, <x>])
```

## Parameters

| Parameter | Description |
|-----------|------------|
| `<b>` | Base should be greater than 0 and not be exactly 1.0 |
| `<x>` | Antilogarithm should be greater than 0 |
| `<x>` | optional, Antilogarithm should be greater than 0, default value is e |

## Return value

Expand All @@ -42,6 +42,18 @@ select log(5,1);
+---------------+
```

```sql
select log(3),ln(3);
```

```text
+--------------------+--------------------+
| log(3) | ln(3) |
+--------------------+--------------------+
| 1.0986122886681098 | 1.0986122886681098 |
+--------------------+--------------------+
```

```sql
select log(3,20);
```
Expand Down