system.table_engines

Contains description of table engines supported by server and their feature support information.

This table contains the following columns (the column type is shown in brackets):

  • name (String) — The name of table engine.
  • supports_settings (UInt8) — Flag that indicates if table engine supports SETTINGS clause.
  • supports_skipping_indices (UInt8) — Flag that indicates if table engine supports skipping indices.
  • supports_ttl (UInt8) — Flag that indicates if table engine supports TTL.
  • supports_sort_order (UInt8) — Flag that indicates if table engine supports clauses PARTITION_BY, PRIMARY_KEY, ORDER_BY and SAMPLE_BY.
  • supports_replication (UInt8) — Flag that indicates if table engine supports data replication.
  • supports_duduplication (UInt8) — Flag that indicates if table engine supports data deduplication.
  • supports_parallel_insert (UInt8) — Flag that indicates if table engine supports parallel insert (see max_insert_threads setting).

Example:

  1. SELECT *
  2. FROM system.table_engines
  3. WHERE name in ('Kafka', 'MergeTree', 'ReplicatedCollapsingMergeTree')
  1. ┌─name──────────────────────────┬─supports_settings─┬─supports_skipping_indices─┬─supports_sort_order─┬─supports_ttl─┬─supports_replication─┬─supports_deduplication─┬─supports_parallel_insert─┐
  2. MergeTree 1 1 1 1 0 0 1
  3. Kafka 1 0 0 0 0 0 0
  4. ReplicatedCollapsingMergeTree 1 1 1 1 1 1 1
  5. └───────────────────────────────┴───────────────────┴───────────────────────────┴─────────────────────┴──────────────┴──────────────────────┴────────────────────────┴──────────────────────────┘

See also

Original article