> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-8a08bda2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> RowBinaryWithDefaults 포맷 문서

# RowBinaryWithDefaults

| 입력 | 출력 | 별칭 |
| -- | -- | -- |
| ✔  | ✗  |    |

<div id="description">
  ## 설명
</div>

[`RowBinary`](/ko/reference/formats/RowBinary/RowBinary) 포맷과 비슷하지만, 각 컬럼 앞에 기본값을 사용해야 하는지 나타내는 바이트가 하나 더 있습니다.

<div id="example-usage">
  ## 사용 예시
</div>

예시:

```sql title="Query" theme={null}
SELECT * FROM FORMAT('RowBinaryWithDefaults', 'x UInt32 default 42, y UInt32', x'010001000000')
```

```response title="Response" theme={null}
┌──x─┬─y─┐
│ 42 │ 1 │
└────┴───┘
```

* 컬럼 `x`에는 기본값을 사용해야 함을 나타내는 1바이트 `01`만 있으며, 이 바이트 뒤에는 추가 데이터가 없습니다.
* 컬럼 `y`의 데이터는 해당 컬럼에 실제 값이 있음을 나타내는 바이트 `00`으로 시작하며, 이후의 데이터 `01000000`에서 값을 읽어야 합니다.

<div id="format-settings">
  ## 포맷 설정
</div>

다음 설정은 모든 `RowBinary` 계열 포맷에 공통으로 적용됩니다.

| 설정                                                                                                                                       | 설명                                                                                                                                                                                                             | 기본값     |
| ---------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| [`format_binary_max_string_size`](/ko/reference/settings/formats#format_binary_max_string_size)                                          | `RowBinary` 포맷에서 `String`에 허용되는 최대 크기입니다.                                                                                                                                                                      | `1GiB`  |
| [`output_format_binary_encode_types_in_binary_format`](/ko/reference/settings/formats#input_format_binary_decode_types_in_binary_format) | [`RowBinaryWithNamesAndTypes`](/ko/reference/formats/RowBinary/RowBinaryWithNamesAndTypes) 출력 형식에서 헤더의 타입을 타입 이름 문자열 대신 [`binary encoding`](/ko/reference/data-types/data-types-binary-encoding)으로 기록할 수 있습니다. | `false` |
| [`input_format_binary_decode_types_in_binary_format`](/ko/reference/settings/formats#input_format_binary_decode_types_in_binary_format)  | [`RowBinaryWithNamesAndTypes`](/ko/reference/formats/RowBinary/RowBinaryWithNamesAndTypes) 입력 형식에서 헤더의 타입을 타입 이름 문자열 대신 [`binary encoding`](/ko/reference/data-types/data-types-binary-encoding)으로 읽을 수 있습니다.  | `false` |
| [`output_format_binary_write_json_as_string`](/ko/reference/settings/formats#output_format_binary_write_json_as_string)                  | [`RowBinary`](/ko/reference/formats/RowBinary/RowBinary) 출력 형식에서 [`JSON`](/ko/reference/data-types/newjson) 데이터 타입의 값을 `JSON` [String](/ko/reference/data-types/string) 값으로 기록할 수 있습니다.                        | `false` |
| [`input_format_binary_read_json_as_string`](/ko/reference/settings/formats#input_format_binary_read_json_as_string)                      | [`RowBinary`](/ko/reference/formats/RowBinary/RowBinary) 입력 형식에서 [`JSON`](/ko/reference/data-types/newjson) 데이터 타입의 값을 `JSON` [String](/ko/reference/data-types/string) 값으로 읽을 수 있습니다.                         | `false` |
