mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
fix test case
This commit is contained in:
parent
e0497e9549
commit
75393249bf
@ -1,18 +1,14 @@
|
||||
CREATE DATABASE IF NOT EXISTS test_sample;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS test_sample.sample_incorrect
|
||||
CREATE TABLE IF NOT EXISTS sample_incorrect
|
||||
(`x` UUID)
|
||||
ENGINE = MergeTree
|
||||
ORDER BY tuple(x)
|
||||
SAMPLE BY x; -- { serverError 59 }
|
||||
|
||||
DROP TABLE IF EXISTS test_sample.sample_correct;
|
||||
CREATE TABLE IF NOT EXISTS test_sample.sample_correct
|
||||
DROP TABLE IF EXISTS sample_correct;
|
||||
CREATE TABLE IF NOT EXISTS sample_correct
|
||||
(`x` String)
|
||||
ENGINE = MergeTree
|
||||
ORDER BY tuple(sipHash64(x))
|
||||
SAMPLE BY sipHash64(x);
|
||||
|
||||
DROP TABLE test_sample.sample_correct;
|
||||
|
||||
DROP DATABASE test_sample;
|
||||
DROP TABLE sample_correct;
|
||||
|
Loading…
Reference in New Issue
Block a user