Add a test for #38534

This commit is contained in:
Alexey Milovidov 2023-12-31 12:46:34 +01:00
parent c29b5e351e
commit aec85da96a
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1 @@
10

View File

@ -0,0 +1,17 @@
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;