본문으로 바로가기
본문으로 바로가기

system.merge_tree_settings

MergeTree 테이블 설정에 대한 정보를 포함합니다.

컬럼:

  • name (String) — 설정 이름입니다.
  • value (String) — 설정값입니다.
  • default (String) — 설정 기본값입니다.
  • changed (UInt8) — 설정이 구성(config)에서 명시적으로 정의되었거나 명시적으로 변경된 경우 1입니다.
  • description (String) — 설정 설명입니다.
  • min (Nullable(String)) — 제약 조건(constraints)을 통해 설정된 경우 설정의 최소값입니다. 설정에 최소값이 없으면 NULL을 포함합니다.
  • max (Nullable(String)) — 제약 조건(constraints)을 통해 설정된 경우 설정의 최대값입니다. 설정에 최대값이 없으면 NULL을 포함합니다.
  • disallowed_values (Array(String)) — 허용되지 않는 값 목록입니다.
  • readonly (UInt8) — 현재 사용자가 설정을 변경할 수 있는지 여부를 나타냅니다: 0 — 현재 사용자가 설정을 변경할 수 있음, 1 — 현재 사용자가 설정을 변경할 수 없음.
  • type (String) — 설정 타입(구현별 문자열 값)입니다.
  • is_obsolete (UInt8) — 설정이 더 이상 사용되지 않는지 여부를 나타냅니다.
  • tier (Enum8('Production' = 0, 'Obsolete' = 4, 'Experimental' = 8, 'Beta' = 12)) — 이 기능에 대한 지원 수준입니다. ClickHouse 기능은 계층(tier)으로 구성되며, 각 계층은 기능의 현재 개발 상태와 사용 시 기대할 수 있는 특성에 따라 구분됩니다:
  • PRODUCTION: 기능이 안정적이며 사용해도 안전하고, 다른 PRODUCTION 기능과 상호 작용하는 데 문제가 없습니다.
  • BETA: 기능이 안정적이고 안전합니다. 다른 기능과 함께 사용했을 때의 결과는 알려져 있지 않으며, 정확성이 보장되지 않습니다. 테스트 및 보고를 환영합니다.
  • EXPERIMENTAL: 기능이 개발 중입니다. 개발자와 ClickHouse 열성 사용자를 위한 것입니다. 기능이 동작할 수도, 동작하지 않을 수도 있으며 언제든지 제거될 수 있습니다.
  • OBSOLETE: 더 이상 지원되지 않습니다. 이미 제거되었거나 향후 릴리스에서 제거될 예정입니다.

예제

SELECT * FROM system.merge_tree_settings LIMIT 3 FORMAT Vertical;
SELECT *
FROM system.merge_tree_settings
LIMIT 3
FORMAT Vertical

Query id: 2580779c-776e-465f-a90c-4b7630d0bb70

Row 1:
──────
name:        min_compress_block_size
value:       0
default:     0
changed:     0
description: When granule is written, compress the data in buffer if the size of pending uncompressed data is larger or equal than the specified threshold. If this setting is not set, the corresponding global setting is used.
min:         ᴺᵁᴸᴸ
max:         ᴺᵁᴸᴸ
readonly:    0
type:        UInt64
is_obsolete: 0
tier:        Production

Row 2:
──────
name:        max_compress_block_size
value:       0
default:     0
changed:     0
description: Compress the pending uncompressed data in buffer if its size is larger or equal than the specified threshold. Block of data will be compressed even if the current granule is not finished. If this setting is not set, the corresponding global setting is used.
min:         ᴺᵁᴸᴸ
max:         ᴺᵁᴸᴸ
readonly:    0
type:        UInt64
is_obsolete: 0
tier:        Production

Row 3:
──────
name:        index_granularity
value:       8192
default:     8192
changed:     0
description: How many rows correspond to one primary key value.
min:         ᴺᵁᴸᴸ
max:         ᴺᵁᴸᴸ
readonly:    0
type:        UInt64
is_obsolete: 0
tier:        Production

3 rows in set. Elapsed: 0.001 sec.