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

system.codecs

描述

包含有关压缩和加密编解码器的信息。

您可以使用该表获取可用压缩和加密编解码器的信息。

  • name (String) — 编解码器名称。
  • method_byte (UInt8) — 表示压缩文件中编解码器的字节值。
  • is_compression (UInt8) — 如果此编解码器执行压缩,则为 True。否则,它也可能只是有助于压缩的某种转换。
  • is_generic_compression (UInt8) — 该编解码器是通用压缩算法,例如 lz4、zstd。
  • is_encryption (UInt8) — 该编解码器用于加密。
  • is_timeseries_codec (UInt8) — 该编解码器用于浮点时间序列。
  • is_experimental (UInt8) — 该编解码器为 Experimental。
  • description (String) — 该编解码器的高级说明。

示例

SELECT * FROM system.codecs WHERE name='LZ4'
Row 1:
──────
name:                   LZ4
method_byte:            130
is_compression:         1
is_generic_compression: 1
is_encryption:          0
is_timeseries_codec:    0
is_experimental:        0
description:            Extremely fast; good compression; balanced speed and efficiency.