Skip to content

Support window definitions with aliases #15605

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

Closed
alamb opened this issue Apr 6, 2025 · 1 comment · Fixed by #15639
Closed

Support window definitions with aliases #15605

alamb opened this issue Apr 6, 2025 · 1 comment · Fixed by #15639
Assignees
Labels
enhancement New feature or request

Comments

@alamb
Copy link
Contributor

alamb commented Apr 6, 2025

Originally posted by @jonahgao in #15033 (comment):

Unrelated to the current fix, we should compare them using normalized names to support the following SQL

SELECT
  t1.v1,
  SUM(t1.v1) OVER W + 1
FROM
  generate_series(1, 5) AS t1(v1)
WINDOW
  w AS (ORDER BY t1.v1);
@alamb alamb changed the title Unrelated to the current fix, we should compare them using normalized names to support Support window definitions with aliases Apr 6, 2025
@alamb alamb added the enhancement New feature or request label Apr 6, 2025
@chenkovsky
Copy link
Contributor

take

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants