ClickHouse/tests/queries/0_stateless/02892_rocksdb_trivial_count.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
473 B
MySQL
Raw Normal View History

-- Tags: use-rocksdb
CREATE TABLE dict (key UInt64, value String) ENGINE = EmbeddedRocksDB PRIMARY KEY key;
INSERT INTO dict SELECT number, toString(number) FROM numbers(121);
-- { echoOn }
SELECT count() FROM dict SETTINGS optimize_trivial_approximate_count_query = 0, max_rows_to_read = 1; -- { serverError TOO_MANY_ROWS }
SELECT count() FROM dict SETTINGS max_rows_to_read = 1;
SELECT total_rows FROM system.tables WHERE database = currentDatabase() AND name = 'dict';