Merge pull request #21447 from ClickHouse/try-fix-perftests

Try fix perftests.
This commit is contained in:
Nikolai Kochetov 2021-03-05 12:48:28 +03:00 committed by GitHub
commit 5f6c8eb1d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 8 deletions

View File

@ -4,4 +4,6 @@
<!-- Path to configuration file with users, access rights, profiles of settings, quotas. -->
<users_config>users.xml</users_config>
</yandex>
<access_control_path>/var/lib/clickhouse/access/</access_control_path>
</yandex>

View File

@ -1,16 +1,16 @@
<test>
<create_query>DROP TABLE IF EXISTS test_prl;</create_query>
<create_query>CREATE TABLE test_prl (n UInt64) ENGINE MergeTree ORDER BY n;</create_query>
<create_query>GRANT CREATE ROW POLICY ON *.* TO CURRENT_USER</create_query>
<!--<create_query>GRANT CREATE ROW POLICY ON *.* TO CURRENT_USER</create_query>-->
<create_query>CREATE ROW POLICY OR REPLACE test_prl_policy ON test_prl AS PERMISSIVE FOR SELECT USING n % 7 TO ALL;</create_query>
<fill_query>INSERT INTO test_prl SELECT number FROM numbers(50000000);</fill_query>
<fill_query>INSERT INTO test_prl SELECT number FROM numbers(500000000);</fill_query>
<query>SELECT * FROM test_prl;</query>
<query>SELECT * FROM test_prl WHERE n % 3 AND n % 5 SETTINGS optimize_move_to_prewhere = 0;</query>
<query>SELECT * FROM test_prl PREWHERE n % 3 AND n % 5;</query>
<query>SELECT * FROM test_prl PREWHERE n % 3 WHERE n % 5;</query>
<query>SELECT * FROM test_prl PREWHERE n % 5 WHERE n % 3;</query>
<query>SELECT sum(n) FROM test_prl settings max_threads=1;</query>
<query>SELECT sum(n) FROM test_prl WHERE n % 3 AND n % 5 SETTINGS optimize_move_to_prewhere = 0, max_threads=1;</query>
<query>SELECT sum(n) FROM test_prl PREWHERE n % 3 AND n % 5 settings max_threads=1;</query>
<query>SELECT sum(n) FROM test_prl PREWHERE n % 3 WHERE n % 5 settings max_threads=1;</query>
<query>SELECT sum(n) FROM test_prl PREWHERE n % 5 WHERE n % 3 settings max_threads=1;</query>
<drop_query>DROP ROW POLICY IF EXISTS test_prl_policy ON test_prl;</drop_query>
<drop_query>DROP TABLE IF EXISTS test_prl;</drop_query>