-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63767 from ClickHouse/cherrypick/24.2/7de852fccc9…
…cada42173444b892511a37d038aea Cherry pick #63694 to 24.2: Analyzer: Forbid WINDOW redefinition
- Loading branch information
Showing
3 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
8 changes: 8 additions & 0 deletions
8
tests/queries/0_stateless/03149_analyzer_window_redefinition.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CREATE TABLE users (uid Int16, name String, age Int16) ENGINE=MergeTree ORDER BY tuple(); | ||
|
||
INSERT INTO users VALUES (1231, 'John', 33); | ||
INSERT INTO users VALUES (6666, 'Ksenia', 48); | ||
INSERT INTO users VALUES (8888, 'Alice', 50); | ||
|
||
SELECT count(*) OVER w | ||
FROM users WINDOW w AS (ORDER BY uid), w AS(ORDER BY name); -- { serverError BAD_ARGUMENTS } |