メインコンテンツまでスキップ
メインコンテンツまでスキップ

JSONの形式設定

On this page you can find format settings common to all JSON formats.

設定説明デフォルト注記
input_format_import_nested_jsonネストされたJSONデータをネストされたテーブルにマッピングします(JSONEachRowフォーマットで機能します)。false
input_format_json_read_bools_as_numbersJSON入力フォーマットでブール値を数値として解析できるようにします。true
input_format_json_read_bools_as_stringsJSON入力フォーマットでブール値を文字列として解析できるようにします。true
input_format_json_read_numbers_as_stringsJSON入力フォーマットで数値を文字列として解析できるようにします。true
input_format_json_read_arrays_as_stringsJSON入力フォーマットでJSON配列を文字列として解析できるようにします。true
input_format_json_read_objects_as_stringsJSON入力フォーマットでJSONオブジェクトを文字列として解析できるようにします。true
input_format_json_named_tuples_as_objects名前付きタプルカラムをJSONオブジェクトとして解析します。true
input_format_json_try_infer_numbers_from_stringsスキーマ推論中に文字列フィールドから数値を推測しようとします。false
input_format_json_try_infer_named_tuples_from_objectsスキーマ推論中にJSONオブジェクトから名前付きタプルを推測しようとします。true
input_format_json_infer_incomplete_types_as_stringsJSON入力フォーマットのスキーマ推論中にNullまたは空のオブジェクト/配列のみを含むキーについては、タイプStringを使用します。true
input_format_json_defaults_for_missing_elements_in_named_tuple名前付きタプルを解析する際に、JSONオブジェクト内の欠落した要素にデフォルト値を挿入します。true
input_format_json_ignore_unknown_keys_in_named_tuple名前付きタプルのためにJSONオブジェクト内の未知のキーを無視します。false
input_format_json_compact_allow_variable_number_of_columnsJSONCompact/JSONCompactEachRowフォーマットで可変数のカラムを許可し、余分なカラムを無視し、欠落カラムにはデフォルト値を使用します。false
input_format_json_throw_on_bad_escape_sequenceJSON文字列に不正なエスケープシーケンスが含まれる場合に例外をスローします。無効にすると、不正なエスケープシーケンスはデータにそのまま残ります。true
input_format_json_empty_as_defaultJSON入力の空フィールドをデフォルト値として扱います。false複雑なデフォルト式のためには、input_format_defaults_for_omitted_fieldsも有効にする必要があります。
output_format_json_quote_64bit_integersJSON出力フォーマットでの64ビット整数の引用を制御します。true
output_format_json_quote_64bit_floatsJSON出力フォーマットでの64ビット浮動小数点数の引用を制御します。false
output_format_json_quote_denormalsJSON出力フォーマットで'+nan', '-nan', '+inf', '-inf'出力を有効にします。false
output_format_json_quote_decimalsJSON出力フォーマットでの小数の引用を制御します。false
output_format_json_escape_forward_slashesJSON出力フォーマットでの文字列出力のためのスラッシュのエスケープを制御します。true
output_format_json_named_tuples_as_objects名前付きタプルカラムをJSONオブジェクトとしてシリアライズします。true
output_format_json_array_of_rowsJSONEachRow(Compact)フォーマットで全行のJSON配列を出力します。false
output_format_json_validate_utf8JSON出力フォーマットにおけるUTF-8シーケンスの検証を有効にします。falseJSON/JSONCompact/JSONColumnsWithMetadataフォーマットには影響しないことに注意してください。常にUTF-8を検証します。

Now, let's compare the original text with the translation to ensure accuracy and completeness.

  1. Overall Structure: The table structure has been preserved, including all headers, descriptions, and default values.
  2. Technical Terms: All technical terms were translated according to the provided glossary, and setting names were not translated as per the guidelines.
  3. Markdown Syntax: The Markdown formatting and hyperlinks were correctly retained and formatted for Japanese text.
  4. Content Completeness: No content, notes, or links were omitted or altered, maintaining the semantic meaning throughout the translation.

The translation meets all specified requirements, ensuring both technical accuracy and clarity.