Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No exception when window is defined twice with experimental analyzer on #63539

Closed
alsugiliazova opened this issue May 8, 2024 · 0 comments · Fixed by #63694
Closed

No exception when window is defined twice with experimental analyzer on #63539

alsugiliazova opened this issue May 8, 2024 · 0 comments · Fixed by #63694
Assignees
Labels
analyzer Issues and pull-requests related to new analyzer bug Confirmed user-visible misbehaviour in official release unexpected behaviour

Comments

@alsugiliazova
Copy link

https://fiddle.clickhouse.com/7c46c2a4-8936-4b00-a08e-5a6f6e8aa430

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) 
Code: 36. DB::Exception: Received from localhost:9000. DB::Exception: Window 'w' is defined twice in the WINDOW clause. (BAD_ARGUMENTS)

The same query with analyzer:

SELECT count(*) OVER w 
FROM users WINDOW w AS (ORDER BY uid), w AS(ORDER BY name)  
SETTINGS allow_experimental_analyzer=1
1
3
2

Is this change intentional?

@Algunenano Algunenano added analyzer Issues and pull-requests related to new analyzer bug Confirmed user-visible misbehaviour in official release labels May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer Issues and pull-requests related to new analyzer bug Confirmed user-visible misbehaviour in official release unexpected behaviour
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants