Skip to content

Commit 0aef720

Browse files
committed
headings
1 parent 32bf835 commit 0aef720

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/guides/developer/merge-table-function.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ It does this by creating a temporary [Merge](https://clickhouse.com/docs/engines
1010

1111
<iframe width="768" height="432" src="https://www.youtube.com/embed/b4YfRhD9SSI?si=MuoDwDWeikAV5ttk" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
1212

13-
## Setup tables
13+
## Setup tables {#setup-tables}
1414

1515
We're going to learn how to use this function with help from [Jeff Sackmann's tennis dataset](https://github.com/JeffSackmann/tennis_atp).
1616
We're going to process CSV files that contain matches going back to the 1960s, but we'll create a slightly different schema for each decade.
@@ -46,8 +46,8 @@ SETTINGS schema_inference_make_columns_nullable=0,
4646
schema_inference_hints='winner_seed Nullable(UInt16), loser_seed Nullable(UInt16), surface Enum(\'Hard\', \'Grass\', \'Clay\', \'Carpet\')';
4747
```
4848

49-
## Schema of multiple tables
50-
49+
## Schema of multiple tables {#schema-multiple-tables}
50+
5151
We can run the following query to list the columns in each table along with their types side by side, so that it's easier to see the differences.
5252

5353
```sql
@@ -85,7 +85,7 @@ Let's go through the differences:
8585
* 1980s changes `winner_seed` and `loser_seed` from `Nullable(UInt8)` to `Nullable(UInt16)`.
8686
* 1990s changes `surface` from `String` to `Enum('Hard', 'Grass', 'Clay', 'Carpet')` and adds the `walkover` and `retirement` columns.
8787

88-
## Querying multiple tables with merge
88+
## Querying multiple tables with merge {#querying-multiple-tables}
8989

9090
Let's write a query to find the matches that John McEnroe won against someone who was seeded #1:
9191

@@ -141,7 +141,7 @@ The result of running the query is shown below:
141141
└───────────────┴───────────────┴─────────────┘
142142
```
143143

144-
## Which table do rows come from when using merge?
144+
## Which table do rows come from when using merge? {#which-table-merge}
145145

146146
What if we want to know which table rows come from?
147147
We can use the `_table` virtual column to do this, as shown in the following query:

0 commit comments

Comments
 (0)