8000 Enhance Semantic Analysis for Named Windows · Issue #18013 · vitessio/vitess · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Enhance Semantic Analysis for Named Windows #18013

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

Open
systay opened this issue Mar 24, 2025 · 0 comments
Open

Enhance Semantic Analysis for Named Windows #18013

systay opened this issue Mar 24, 2025 · 0 comments
Assignees
Labels
Component: Query Serving Type: Enhancement Logical improvement (somewhere between a bug and feature)

Comments

@systay
Copy link
Collaborator
systay commented Mar 24, 2025

Summary:

Extend the semantic analyzer to support named windows. The analyzer must ensure that any named window referenced in the query is defined in the appropriate scope and raise clear errors when it isn’t.

SELECT col1, RANK() OVER w FROM t WINDOW w AS (PARTITION BY col2 ORDER BY col3);

Explanation:

  • The analyzer needs to maintain a symbol table of named windows defined in the query.
  • It must verify that each reference to a named window (like w) corresponds to a previously defined window specification.
  • Make sure the planner uses this information if it encounters named windows.
  • If a query references an undefined named window, the analyzer should provide a clear error message.
@systay systay added Type: Enhancement Logical improvement (somewhere between a bug and feature) Component: Query Serving labels Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Query Serving Type: Enhancement Logical improvement (somewhere between a bug and feature)
Projects
None yet
Development

No branches or pull requests

2 participants
0