Skip to content
ClickHouse Docs

hypothetical_projections

Autogenerated from ClickHouse system tables

Description

Lists every hypothetical (what-if) projection defined in the current session. See CREATE HYPOTHETICAL PROJECTION and EXPLAIN WHATIF.

The contents are session-scoped: each connection sees only its own hypothetical projections, and the table is empty when none have been created in the current session.

The current (database, table) are resolved by UUID at query time, so they reflect RENAME TABLE and entries for dropped tables are hidden automatically.

Columns

Examples

CREATE HYPOTHETICAL PROJECTION p_by_b ON t (SELECT a, b ORDER BY b);
SELECT name, type, sorting_key FROM system.hypothetical_projections;
┌─name───┬─type───┬─sorting_key─┐
│ p_by_b │ Normal │ ['b']       │
└────────┴────────┴─────────────┘

See also