Skip to content

Implement over() function for window aggregations#42

Open
neema2 wants to merge 3 commits intomainfrom
devin/1745458573-over-function
Open

Implement over() function for window aggregations#42
neema2 wants to merge 3 commits intomainfrom
devin/1745458573-over-function

Conversation

@neema2
Copy link
Copy Markdown
Collaborator

@neema2 neema2 commented Apr 24, 2025

Implement over() function for window aggregationsThis PR implements the over() function in LegendQL, which is used within the extend() method to perform window aggregations.Changes include:- Implemented the _parse_over function in parser.py to handle window aggregations- Added visit_over_function method to the ExecutionVisitor interface in metamodel.py- Implemented conversion of OverFunction to Legend code in dialect.py- Enabled the previously skipped test in test/parser/parser_test.py- Added comprehensive unit tests in test/parser/over_function_test.py covering: - Basic over function usage - Multiple partition columns - Multiple aggregation functions - Sort specifications - Rows and range frames - Qualify filtersAll tests are now passing, confirming that the implementation works correctly.Link to Devin run: https://app.devin.ai/sessions/6a4229792d9f439d9a81e501119a24dcRequested by: Neema Raphael

devin-ai-integration bot and others added 3 commits April 24, 2025 01:43
Co-Authored-By: neema.raphael@gs.com <Neema.Raphael@gs.com>
…mentation

Co-Authored-By: neema.raphael@gs.com <Neema.Raphael@gs.com>
Co-Authored-By: neema.raphael@gs.com <Neema.Raphael@gs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant