> ## 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.

# その他のフォーマット設定

> 「Other」生成グループに含まれる ClickHouse のフォーマット設定。

export const SettingsInfoBlock = ({type, default_value, changeable_without_restart}) => {
  return <div className="not-prose" style={{
    display: "flex",
    flexWrap: "wrap",
    alignItems: "baseline",
    columnGap: "0.5rem",
    rowGap: "0.125rem",
    margin: "0.375rem 0",
    fontSize: "0.8125rem",
    lineHeight: "1.125rem"
  }}>
      <div style={{
    fontWeight: 600,
    opacity: 0.72
  }}>型</div>
      <div style={{
    overflowWrap: "anywhere"
  }}>{type}</div>
      <div style={{
    fontWeight: 600,
    opacity: 0.72,
    marginInlineStart: "0.5rem"
  }}>デフォルト値</div>
      <div style={{
    overflowWrap: "anywhere"
  }}>{default_value}</div>
      {changeable_without_restart && <div style={{
    fontWeight: 600,
    opacity: 0.72,
    marginInlineStart: "0.5rem"
  }}>
          再起動せずに変更可能
        </div>}
      {changeable_without_restart && <div style={{
    overflowWrap: "anywhere"
  }}>
          {changeable_without_restart}
        </div>}
    </div>;
};

これらの設定は、[source](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/FormatFactorySettings.h)から自動生成されたものです。

<div id="allow_special_bool_values_inside_variant">
  ## allow\_special\_bool\_values\_inside\_variant
</div>

<SettingsInfoBlock type="Bool" default_value="0" />

"on"、"off"、"enable"、"disable" などの特殊なテキストの bool 値から、Variant 型内の Bool 値を読み取れるようにします。

<div id="check_conversion_from_numbers_to_enum">
  ## check\_conversion\_from\_numbers\_to\_enum
</div>

<SettingsInfoBlock type="Bool" default_value="1" />

値がEnumに存在しない場合、NumbersからEnumへの変換時に例外を発生させます。

設定可能な値:

* 0 — 無効。
* 1 — 有効。

**例**

```text theme={null}
CREATE TABLE tab (
  val Enum('first' = 1, 'second' = 2, 'third' = 3)
) ENGINE = Memory;

INSERT INTO tab SETTINGS check_conversion_from_numbers_to_enum = 1 VALUES (4); -- returns an error
```

<div id="column_names_for_schema_inference">
  ## column\_names\_for\_schema\_inference
</div>

カラム名を持たないフォーマットで、スキーマ推論に使用するカラム名の一覧です。形式: 'column1,column2,column3,...'

<div id="errors_output_format">
  ## errors\_output\_format
</div>

<SettingsInfoBlock type="String" default_value="CSV" />

Errors をテキスト出力に書き出す際の方式です。

<div id="insert_distributed_one_random_shard">
  ## insert\_distributed\_one\_random\_shard
</div>

<SettingsInfoBlock type="Bool" default_value="0" />

分散キーがない場合に、[Distributed](/docs/ja/reference/engines/table-engines/special/distributed) テーブルへのランダムな分片への挿入を有効または無効にします。

デフォルトでは、複数の分片を持つ `Distributed` テーブルにデータを挿入する際、分散キーがないと ClickHouse サーバーは挿入リクエストを拒否します。`insert_distributed_one_random_shard = 1` の場合、挿入が許可され、データはすべての分片のいずれかにランダムに転送されます。

設定可能な値:

* 0 — 複数の分片があり、分散キーが指定されていない場合、挿入は拒否されます。
* 1 — 分散キーが指定されていない場合、利用可能なすべての分片のいずれかにランダムに挿入されます。

<div id="interval_output_format">
  ## interval\_output\_format
</div>

<SettingsInfoBlock type="IntervalOutputFormat" default_value="numeric" />

インターバル型のテキスト表現に使用する出力フォーマットを選択できます。

設定可能な値:

* `kusto` - KQL スタイルの出力フォーマット。

  ClickHouse はインターバルを [KQL format](https://learn.microsoft.com/en-us/dotnet/standard/base-types/standard-timespan-format-strings#the-constant-c-format-specifier) で出力します。たとえば、`toIntervalDay(2)` は `2.00:00:00` としてフォーマットされます。なお、長さが可変のインターバル型 (`IntervalMonth` や `IntervalYear` など) では、インターバルあたりの平均秒数が考慮されます。

* `numeric` - 数値出力フォーマット。

  ClickHouse はインターバルを基になる数値表現で出力します。たとえば、`toIntervalDay(2)` は `2` としてフォーマットされます。

関連項目:

* [Interval](/docs/ja/reference/data-types/special-data-types/interval)

<div id="into_outfile_create_parent_directories">
  ## into\_outfile\_create\_parent\_directories
</div>

<SettingsInfoBlock type="Bool" default_value="0" />

INTO OUTFILE を使用する際、親ディレクトリが存在しない場合は自動的に作成します。

<div id="json_type_escape_dots_in_keys">
  ## json\_type\_escape\_dots\_in\_keys
</div>

<SettingsInfoBlock type="Bool" default_value="0" />

有効にすると、JSON キー内のドットはパース時にエスケープされます。

<div id="max_dynamic_subcolumns_in_json_type_parsing">
  ## max\_dynamic\_subcolumns\_in\_json\_type\_parsing
</div>

<SettingsInfoBlock type="UInt64Auto" default_value="auto" />

JSONカラムのパース時に、各カラムで作成可能な動的サブカラムの最大数を指定します。
これにより、データ型で指定された動的パラメータに関係なく、パース時の動的サブカラム数を制御できます。

<div id="precise_float_parsing">
  ## precise\_float\_parsing
</div>

<SettingsInfoBlock type="Bool" default_value="1" />

入力値に常に最も近い表現可能な値を返す、正確な浮動小数点数パースアルゴリズムを使用します。無効にすると、より高速ですが精度の低いアルゴリズムが使用され、正確な結果とは最下位ビット単位で異なる場合があります。

<div id="validate_experimental_and_suspicious_types_inside_nested_types">
  ## validate\_experimental\_and\_suspicious\_types\_inside\_nested\_types
</div>

<SettingsInfoBlock type="Bool" default_value="1" />

Array/Map/Tuple などのネストされた型内で、実験的な型や問題のある型の使用を検証します
