Skip to content

Commit d5bb760

Browse files
committed
DS-15484: Label new functions with New badges
This was suggested by product. There's some functions which have slightly changed (e.g. `quantileExactWeighted`) to support a new alternate form more like ClickHouse. I've not labelled those functions because it's not so important to existing users.
1 parent 7bd2e31 commit d5bb760

File tree

7 files changed

+39
-25
lines changed

7 files changed

+39
-25
lines changed

src/content/docs/analytics/analytics-engine/sql-reference/aggregate-functions.mdx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ head:
99

1010
---
1111

12+
import { Badge } from "~/components"
13+
1214
## count
1315

1416
Usage:
@@ -125,7 +127,7 @@ quantileExactWeighted(0.95)(query_time, _sample_interval)
125127

126128
For backwards compatibility, this is also available as `quantileWeighted(q, column_name, weight_column_name)`.
127129

128-
## argMax
130+
## argMax <Badge text="New" variant="tip" size="small" />
129131

130132
Usage:
131133

@@ -147,7 +149,7 @@ argMax(blob1, double1)
147149
argMax(blob1, _sample_interval)
148150
```
149151

150-
## argMin
152+
## argMin <Badge text="New" variant="tip" size="small" />
151153

152154
Usage:
153155

@@ -169,7 +171,7 @@ argMin(blob1, double1)
169171
argMin(blob1, _sample_interval)
170172
```
171173

172-
## first_value
174+
## first_value <Badge text="New" variant="tip" size="small" />
173175

174176
Usage:
175177

@@ -186,7 +188,7 @@ Example:
186188
SELECT first_value(blob1) FROM my_dataset ORDER BY timestamp ASC
187189
```
188190

189-
## last_value
191+
## last_value <Badge text="New" variant="tip" size="small" />
190192

191193
Usage:
192194

src/content/docs/analytics/analytics-engine/sql-reference/bit-functions.mdx

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ head:
99

1010
---
1111

12-
## bitAnd
12+
import { Badge } from "~/components"
13+
14+
## bitAnd <Badge text="New" variant="tip" size="small" />
1315

1416
Usage:
1517

@@ -28,7 +30,7 @@ bitAnd(1, 3)
2830
bitAnd(toUInt8(double1), 1)
2931
```
3032

31-
## bitCount
33+
## bitCount <Badge text="New" variant="tip" size="small" />
3234

3335
Usage:
3436

@@ -49,7 +51,7 @@ bitCount(toUInt32(double1))
4951
SELECT * WHERE bitCount(double1) > 5
5052
```
5153

52-
## bitHammingDistance
54+
## bitHammingDistance <Badge text="New" variant="tip" size="small" />
5355

5456
Usage:
5557

@@ -68,7 +70,7 @@ bitHammingDistance(1, 1)
6870
bitHammingDistance(3, 0)
6971
```
7072

71-
## bitNot
73+
## bitNot <Badge text="New" variant="tip" size="small" />
7274

7375
Usage:
7476

@@ -84,7 +86,7 @@ Examples:
8486
bitNot(1)
8587
```
8688

87-
## bitOr
89+
## bitOr <Badge text="New" variant="tip" size="small" />
8890

8991
Usage:
9092

@@ -101,7 +103,7 @@ Examples:
101103
bitOr(1, 2)
102104
```
103105

104-
## bitRotateLeft
106+
## bitRotateLeft <Badge text="New" variant="tip" size="small" />
105107

106108
Usage:
107109

@@ -120,7 +122,7 @@ bitRotateLeft(1, 1)
120122
bitRotateLeft(128, 1)
121123
```
122124

123-
## bitRotateRight
125+
## bitRotateRight <Badge text="New" variant="tip" size="small" />
124126

125127
Usage:
126128

@@ -139,7 +141,7 @@ bitRotateRight(1, 1)
139141
bitRotateRight(12, 2)
140142
```
141143

142-
## bitShiftLeft
144+
## bitShiftLeft <Badge text="New" variant="tip" size="small" />
143145

144146
Usage:
145147

@@ -158,7 +160,7 @@ bitShiftLeft(1, 1)
158160
bitShiftLeft(128, 1)
159161
```
160162

161-
## bitShiftRight
163+
## bitShiftRight <Badge text="New" variant="tip" size="small" />
162164

163165
Usage:
164166

@@ -177,7 +179,7 @@ bitShiftRight(1, 1)
177179
bitShiftRight(12, 2)
178180
```
179181

180-
## bitTest
182+
## bitTest <Badge text="New" variant="tip" size="small" />
181183

182184
Usage:
183185

@@ -198,7 +200,7 @@ bitTest(2, 1)
198200
SELECT * WHERE bitTest(double1, 2)
199201
```
200202

201-
## bitXor
203+
## bitXor <Badge text="New" variant="tip" size="small" />
202204

203205
Usage:
204206

src/content/docs/analytics/analytics-engine/sql-reference/encoding-functions.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ head:
99

1010
---
1111

12-
## bin
12+
import { Badge } from "~/components"
13+
14+
## bin <Badge text="New" variant="tip" size="small" />
1315

1416
Usage:
1517

@@ -28,7 +30,7 @@ bin(1)
2830
bin('abc')
2931
```
3032

31-
## hex
33+
## hex <Badge text="New" variant="tip" size="small" />
3234

3335
Usage:
3436

src/content/docs/analytics/analytics-engine/sql-reference/mathematical-functions.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ head:
99

1010
---
1111

12+
import { Badge } from "~/components"
13+
1214
## intDiv
1315

1416
Usage:
@@ -19,7 +21,7 @@ intDiv(a, b)
1921

2022
Divide a by b, rounding the answer down to the nearest whole number.
2123

22-
## log
24+
## log <Badge text="New" variant="tip" size="small" />
2325

2426
Usage:
2527

@@ -36,7 +38,7 @@ Examples:
3638
log(double1)
3739
```
3840

39-
## pow
41+
## pow <Badge text="New" variant="tip" size="small" />
4042

4143
Usage:
4244

src/content/docs/analytics/analytics-engine/sql-reference/rounding-functions.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ head:
99

1010
---
1111

12-
## round
12+
import { Badge } from "~/components"
13+
14+
## round <Badge text="New" variant="tip" size="small" />
1315

1416
Usage:
1517

@@ -28,7 +30,7 @@ round(5.5)
2830
round(3.14, 1)
2931
```
3032

31-
## floor
33+
## floor <Badge text="New" variant="tip" size="small" />
3234

3335
Usage:
3436

@@ -47,7 +49,7 @@ floor(5.5)
4749
floor(3.14, 1)
4850
```
4951

50-
## ceil
52+
## ceil <Badge text="New" variant="tip" size="small" />
5153

5254
Usage:
5355

src/content/docs/analytics/analytics-engine/sql-reference/string-functions.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ head:
99

1010
---
1111

12+
import { Badge } from "~/components"
13+
1214
## length
1315

1416
Usage:
@@ -64,7 +66,7 @@ SELECT lower('STRING TO DOWNCASE') AS s;
6466
SELECT lower(blob1) AS s FROM your_dataset;
6567
```
6668

67-
## lowerUTF8
69+
## lowerUTF8 <Badge text="New" variant="tip" size="small" />
6870

6971
Usage:
7072

@@ -100,7 +102,7 @@ SELECT upper('string to uppercase') AS s;
100102
SELECT upper(blob1) AS s FROM your_dataset;
101103
```
102104

103-
## upperUTF8
105+
## upperUTF8 <Badge text="New" variant="tip" size="small" />
104106

105107
Usage:
106108

src/content/docs/analytics/analytics-engine/sql-reference/type-conversion-functions.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ head:
99

1010
---
1111

12-
## toUInt8
12+
import { Badge } from "~/components"
13+
14+
## toUInt8 <Badge text="New" variant="tip" size="small" />
1315

1416
Usage:
1517

0 commit comments

Comments
 (0)