본문으로 바로가기
본문으로 바로가기

system.data_skipping_indices

모든 테이블에 존재하는 데이터 스키핑 인덱스 정보를 포함합니다.

컬럼:

  • database (String) — 데이터베이스 이름.
  • table (String) — 테이블 이름.
  • name (String) — 인덱스 이름.
  • type (String) — 인덱스 유형.
  • type_full (String) — CREATE 구문에 지정된 인덱스 유형 표현식.
  • expr (String) — 인덱스 계산을 위한 표현식.
  • creation (Enum8('Explicit' = 0, 'Implicit' = 1)) — 인덱스가 암시적으로 생성되었는지 여부(예: add_minmax_index_for_numeric_columns 등을 통해 생성됨).
  • granularity (UInt64) — 블록에 포함된 그래뉼 수.
  • data_compressed_bytes (UInt64) — 압축된 데이터 크기(바이트 단위).
  • data_uncompressed_bytes (UInt64) — 압축 해제된 데이터 크기(바이트 단위).
  • marks_bytes (UInt64) — 마크 크기(바이트 단위).

예제

SELECT * FROM system.data_skipping_indices LIMIT 2 FORMAT Vertical;
Row 1:
──────
database:                default
table:                   user_actions
name:                    clicks_idx
type:                    minmax
type_full:               minmax
expr:                    clicks
creation:                Explicit
granularity:             1
data_compressed_bytes:   58
data_uncompressed_bytes: 6
marks_bytes:             48

Row 2:
──────
database:                default
table:                   users
name:                    contacts_null_idx
type:                    minmax
type_full:               minmax
expr:                    assumeNotNull(contacts_null)
creation:                Explicit
granularity:             1
data_compressed_bytes:   58
data_uncompressed_bytes: 6
marks_bytes:             48