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

system.merge_tree_settings

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

列:

  • name (String) — 设置名称。
  • value (String) — 设置值。
  • default (String) — 设置默认值。
  • changed (UInt8) — 设置是否在配置中显式定义或显式更改。
  • description (String) — 设置描述。
  • min (Nullable(String)) — 设置的最小值(如果通过constraints设置)。如果设置没有最小值,则包含NULL
  • max (Nullable(String)) — 设置的最大值(如果通过constraints设置)。如果设置没有最大值,则包含NULL
  • readonly (UInt8) — 显示当前用户是否可以更改设置:
    • 0 — 当前用户可以更改设置。
    • 1 — 当前用户无法更改设置。
  • type (String) — 设置类型(具体实现的字符串值)。
  • is_obsolete (UInt8) - 显示设置是否过时。
  • tier (Enum8) — 此功能的支持级别。 ClickHouse特性按级别组织,具体取决于其开发的当前状态,以及当使用它们时可能有的期望。值:
    • '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.