Skip to content

Commit 884a95d

Browse files
committed
Merge branch 'main' into update_ja_translations
2 parents aabc145 + b239c8d commit 884a95d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/managing-data/core-concepts/shards.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ ENGINE = Distributed('test_cluster', 'uk', 'uk_price_paid_simple', rand())
5050

5151
The `ON CLUSTER` clause makes the DDL statement a [distributed DDL statement](/docs/sql-reference/distributed-ddl), instructing ClickHouse to create the table on all servers listed in the `test_cluster` [cluster definition](/docs/architecture/horizontal-scaling#replication-and-sharding-configuration). Distributed DDL requires an additional [Keeper](https://clickhouse.com/clickhouse/keeper) component in the [cluster architecture](/docs/architecture/horizontal-scaling#architecture-diagram).
5252

53-
For the [distributed engine parameters](/docs/engines/table-engines/special/distributed#distributed-parameters), we specify the cluster name (`test_cluster`), the database name (`uk`) for the sharded target table, the sharded target table's name (`uk_price_paid_simple`), and the **sharding key** for INSERT routing. In this example, we use the [rand]((/sql-reference/functions/random-functions#rand)) function to randomly assign rows to shards. However, any expression—even complex ones—can be used as a sharding key, depending on the use case. The next section illustrates how INSERT routing works.
53+
For the [distributed engine parameters](/docs/engines/table-engines/special/distributed#distributed-parameters), we specify the cluster name (`test_cluster`), the database name (`uk`) for the sharded target table, the sharded target table's name (`uk_price_paid_simple`), and the **sharding key** for INSERT routing. In this example, we use the [rand](/sql-reference/functions/random-functions#rand) function to randomly assign rows to shards. However, any expression—even complex ones—can be used as a sharding key, depending on the use case. The next section illustrates how INSERT routing works.
5454

5555
## INSERT routing {#insert-routing}
5656

scripts/generate-changelog.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ if grep -q "^# $(date +%Y) Changelog" "$parent_dir/tmp/CHANGELOG.md"; then
99
echo "Generating $(date +%Y) Changelog..."
1010
sed "/^# $(date +%Y) Changelog/d" "$parent_dir/tmp/CHANGELOG.md" > temp.txt
1111
echo "Changelog copied to temp.txt"
12+
# Changelog has <a id="252"/></a> in it which docusaurus onBrokenAnchor will fail on
13+
# This line is to swap them out for explicit anchor ids rather
14+
sed -i.bak -E 's/### <a id="([0-9]+)"><\/a> (.*)/### \2 {#\1}/g' temp.txt
1215
cat temp.txt >> "$parent_dir/../docs/whats-new/changelog/index.md"
1316
echo "Changelog written to docs/en/whats-new/changelog/index.md"
1417
rm -f temp.txt
18+
rm -f temp.txt.bak
1519
echo "$(date +%Y) Changelog was updated."
1620
else
1721
current_year="$(date +%Y)"

0 commit comments

Comments
 (0)