跳转到主内容
跳转到主内容

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.