> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# rewrite_* セッション設定

> rewrite_* グループの ClickHouse セッション設定。

これらの設定は [system.settings](https://clickhouse.com/docs/ja/reference/system-tables/settings.md) で参照でき、[ソースコード](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp) から自動生成されています。

## rewrite\_count\_distinct\_if\_with\_count\_distinct\_implementation

型

Bool

デフォルト値

0

[count\_distinct\_implementation](https://clickhouse.com/docs/ja/reference/settings/session-settings/count-distinct.md#count_distinct_implementation) 設定を使用して `countDistcintIf` を書き換えることを許可します。

設定可能な値:

* true — 許可します。
* false — 許可しません。

## rewrite\_in\_to\_join

[実験的な機能](https://clickhouse.com/docs/reference/settings/beta-and-experimental-features.md#experimental-features)

型

Bool

デフォルト値

0

'x IN subquery' のような式を JOIN に書き換えます。これは、JOIN の順序を並べ替えることでクエリ全体の最適化に役立つ場合があります。
