mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +00:00
Add a test for #38534
This commit is contained in:
parent
c29b5e351e
commit
aec85da96a
@ -0,0 +1 @@
|
||||
10
|
17
tests/queries/0_stateless/02960_partition_by_udf.sql
Normal file
17
tests/queries/0_stateless/02960_partition_by_udf.sql
Normal 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;
|
Loading…
Reference in New Issue
Block a user