ClickHouse/tests/queries/1_stateful/00166_explain_estimate.sql
2024-06-06 23:21:38 +08:00

11 lines
573 B
SQL

-- Tags: no-replicated-database
-- Tag no-replicated-database: Requires investigation
SET optimize_use_implicit_projections = 0;
EXPLAIN ESTIMATE SELECT count() FROM test.hits WHERE CounterID = 29103473;
EXPLAIN ESTIMATE SELECT count() FROM test.hits WHERE CounterID != 29103473;
EXPLAIN ESTIMATE SELECT count() FROM test.hits WHERE CounterID > 29103473;
EXPLAIN ESTIMATE SELECT count() FROM test.hits WHERE CounterID < 29103473;
EXPLAIN ESTIMATE SELECT count() FROM test.hits WHERE CounterID = 29103473 UNION ALL SELECT count() FROM test.hits WHERE CounterID = 1704509;