Skip to content

Commit f01cff9

Browse files
committed
make clear for join types
1 parent 85d9c02 commit f01cff9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/joins.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ We can categorize them into the following categories:
109109

110110
Bidirectional join needs to buffer all data for the left stream and right stream and build hash tables for both of them. Whenever there are new or updated rows appearing on either side, the other side’s hash table is probed to see if a join can be matched.
111111

112-
#### Append JOIN Append{#append-join-append}
112+
#### Append INNER/LEFT ALL JOIN Append{#append-join-append}
113113

114114
This may look like the most easy-to-understand scenario. You can try this type of join if you have 2 streams with incoming new data.
115115

@@ -123,7 +123,7 @@ left_append JOIN right_append
123123
ON left_append.k = right_append.kk
124124
```
125125

126-
#### Mutable JOIN Mutable{#mutable-join-mutable}
126+
#### Mutable INNER/LEFT/FULL ALL JOIN Mutable{#mutable-join-mutable}
127127

128128
Both [Mutable Streams](/mutable-stream) and [Versioned Streams](/versioned-stream) can be joined together. This is production ready. We also provide [Changelog Streams](/changelog-stream) joining Changelog Stream as an experimental feature.
129129

@@ -192,7 +192,7 @@ You can also put mutable streams, versioned stream or changelog stream on the le
192192
#### Static JOIN Static
193193
You can put static tables or external tables on the both side of the join. This will be identical to the common OLAP databases.
194194

195-
#### Append JOIN Mutable
195+
#### Append INNER/LEFT ALL JOIN Mutable
196196
The right side can be a mutable stream, versioned stream or changelog stream.
197197

198198
```sql
@@ -272,11 +272,11 @@ SETTINGS join_algorithm = 'direct';
272272
SELECT * FROM test_left LEFT JOIN test_right ON test_left.v = test_right.v1
273273
SETTINGS join_algorithm = 'direct';
274274
```
275-
#### Append ASOF JOIN Append
275+
#### Append INNER/LEFT ASOF JOIN Append
276276

277277
ASOF enrichment join keeps multiple versions(by default 3 versions) of values for the same join key in the hash table and the values are sorted by ASOF unequal join key. This can be customized by setting the `keep_versions`.
278278

279-
#### Append ASOF JOIN Mutable
279+
#### Append INNER/LEFT ASOF JOIN Mutable
280280
Example:
281281
```sql
282282
CREATE STREAM append(i int, k string);
@@ -290,13 +290,13 @@ INSERT INTO versioned_kv(j, k, kk) VALUES (100, 'a', 'bb'), (101, 'a', 'cc'), (1
290290
INSERT INTO append(i, k) VALUES (99, 'a');
291291
```
292292

293-
#### Append LETEST JOIN Append
293+
#### Append INNER/LEFT LATEST JOIN Append
294294

295295
Similar to `ALL JOIN` above, but we only keep the latest version of value for each join key.
296296

297297
The right side of the `LATEST JOIN` can be an append stream or mutable stream(including versioned stream).
298298

299-
#### Append LETEST JOIN Mutable
299+
#### Append INNER/LEFT LATEST JOIN Mutable
300300

301301
```sql
302302
CREATE STREAM append(i int, k string);

0 commit comments

Comments
 (0)