ClickHouse/tests/queries/0_stateless/01234_to_string_monotonic.sql

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

17 lines
680 B
MySQL
Raw Normal View History

2024-03-04 11:27:12 +00:00
SET merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability = 0.0;
2020-04-08 05:27:46 +00:00
DROP TABLE IF EXISTS test1;
DROP TABLE IF EXISTS test2;
CREATE TABLE test1 (s String) ENGINE = MergeTree ORDER BY s SETTINGS index_granularity = 1;
CREATE TABLE test2 (s LowCardinality(String)) ENGINE = MergeTree ORDER BY s SETTINGS index_granularity = 1;
INSERT INTO test1 SELECT toString(number) FROM numbers(10000);
INSERT INTO test2 SELECT toString(number) FROM numbers(10000);
SELECT s FROM test1 WHERE toString(s) = '1234' SETTINGS max_rows_to_read = 2;
SELECT s FROM test2 WHERE toString(s) = '1234' SETTINGS max_rows_to_read = 2;
DROP TABLE test1;
DROP TABLE test2;