> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> 현재 세션에 정의된 가상(what-if) PROJECTION을 나열하는 시스템 테이블

# system.hypothetical_projections

## 설명

현재 세션에 정의된 모든 가상(what-if) PROJECTION을 나열합니다. [`CREATE HYPOTHETICAL PROJECTION`](/docs/ko/reference/statements/hypothetical-projection#create-hypothetical-projection) 및 [`EXPLAIN WHATIF`](/docs/ko/reference/statements/explain#explain-whatif)를 참조하십시오.

이 테이블의 내용은 세션 범위로 한정됩니다. 각 연결은 자신의 가상 PROJECTION만 볼 수 있으며, 현재 세션에서 생성한 것이 없으면 테이블은 비어 있습니다.

현재의 `(database, table)`은 쿼리 시점에 UUID로 해석되므로 `RENAME TABLE`이 그대로 반영되며, 삭제된 테이블의 항목은 자동으로 숨겨집니다.

## 컬럼

* `database` ([String](/docs/ko/reference/data-types/string)) — 데이터베이스 이름
* `table` ([String](/docs/ko/reference/data-types/string)) — 테이블 이름
* `name` ([String](/docs/ko/reference/data-types/string)) — PROJECTION 이름
* `type` ([Enum8('Normal' = 0, 'Aggregate' = 1)](/docs/ko/reference/data-types/enum)) — PROJECTION 유형
* `sorting_key` ([Array(String)](/docs/ko/reference/data-types/array)) — PROJECTION 정렬 키
* `query` ([String](/docs/ko/reference/data-types/string)) — PROJECTION SELECT 쿼리이며, INDEX ... TYPE ... 형식에서는 비어 있습니다
* `definition` ([String](/docs/ko/reference/data-types/string)) — 작성된 그대로의 전체 PROJECTION 선언
* `settings` ([Map(String, String)](/docs/ko/reference/data-types/map)) — WITH SETTINGS로 지정된 PROJECTION 설정

## 예시

```sql theme={null}
CREATE HYPOTHETICAL PROJECTION p_by_b ON t (SELECT a, b ORDER BY b);
SELECT name, type, sorting_key FROM system.hypothetical_projections;
```

```text theme={null}
┌─name───┬─type───┬─sorting_key─┐
│ p_by_b │ Normal │ ['b']       │
└────────┴────────┴─────────────┘
```

## 관련 항목

* [`CREATE HYPOTHETICAL PROJECTION`](/docs/ko/reference/statements/hypothetical-projection#create-hypothetical-projection)
* [`EXPLAIN WHATIF`](/docs/ko/reference/statements/explain#explain-whatif)
