Skip to content

Commit 7186751

Browse files
committed
docs: update get_tranco_rank examples
[no ci]
1 parent 80c33c5 commit 7186751

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

docs/functions/tranco/get-tranco-rank.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@ layout:
1717
You can use this function to get the ranking of a domain:
1818

1919
```sql
20-
D select get_tranco_rank('microsoft.com') as rank;
21-
┌───────┐
22-
│ rank │
23-
int32
24-
├───────┤
25-
2
26-
└───────┘
20+
D SELECT get_tranco_rank('microsoft.com') as rank;
21+
┌─────────
22+
rank
23+
varchar
24+
├─────────
25+
2
26+
└─────────
2727

28-
D select get_tranco_rank('cloudflare.com') as rank;
29-
┌───────┐
30-
│ rank │
31-
int32
32-
├───────┤
33-
13
34-
└───────┘
28+
D SELECT get_tranco_rank('cloudflare.com') as rank;
29+
┌─────────
30+
rank
31+
varchar
32+
├─────────
33+
13
34+
└─────────
3535
```
3636

3737
You can use the `get_tranco_rank_category` function to retrieve the category utility column that gives you the rank category of the domain. The `category` value is on a log10 scale with half steps (e.g. top 1k, top 5k, top 10k, top 50k, top 100k, top 500k, top 1M, top 5m, etc.) with each rank excluding the previous (e.g. top 5k is actually 4k domains, excluding top 1k).

0 commit comments

Comments
 (0)