跳到主要内容
跳到主要内容

system.merge_tree_settings

包含有关 MergeTree 表设置的信息。

列:

  • name (String) — 设置名称。
  • value (String) — 设置值。
  • default (String) — 设置的默认值。
  • changed (UInt8) — 如果在配置中显式定义了该设置或显式修改过该设置,则为 1。
  • description (String) — 设置描述。
  • min (Nullable(String)) — 通过约束为该设置指定的最小值(如果有)。如果设置没有最小值,则为 NULL。
  • max (Nullable(String)) — 通过约束为该设置指定的最大值(如果有)。如果设置没有最大值,则为 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 功能按照不同层级组织,层级会根据功能当前的开发状态以及在使用时对其的预期而变化:
  • 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.