ClickHouse/tests/queries/0_stateless/02960_partition_by_udf.sql

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

20 lines
324 B
MySQL
Raw Normal View History

2024-01-01 15:33:30 +00:00
-- Tags: no-parallel
2023-12-31 11:46:34 +00:00
DROP FUNCTION IF EXISTS f1;
CREATE FUNCTION f1 AS (x) -> x;
CREATE TABLE hit
(
`UserID` UInt32,
`URL` String,
`EventTime` DateTime
)
ENGINE = MergeTree
partition by f1(URL)
ORDER BY (EventTime);
INSERT INTO hit SELECT * FROM generateRandom() LIMIT 10;
SELECT count() FROM hit;
DROP TABLE hit;