Skip to content

Feat/sort operator#29

Merged
Rich-T-kid merged 4 commits intopre-releasefrom
feat/SortOperator
Nov 30, 2025
Merged

Feat/sort operator#29
Rich-T-kid merged 4 commits intopre-releasefrom
feat/SortOperator

Conversation

@Rich-T-kid
Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request implements a sort operator for the query execution engine and standardizes the naming convention for child operator fields across the codebase.

  • Implements SortExec operator for full sorting and TopKSortExec for top-k sorting
  • Renames child field to input in multiple operator structs (ProjectExec, AggrExec, GroupByExec, HavingExec) for consistency with existing operators
  • Adds comprehensive test coverage for the sort operator including edge cases and different data types

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 14 comments.

Show a summary per file
File Description
src/Backend/opti-sql-go/operators/project/projectExec.go Renames child field to input in ProjectExec for consistency
src/Backend/opti-sql-go/operators/project/parquet.go Code cleanup: removes comments and aligns field formatting
src/Backend/opti-sql-go/operators/aggr/sort_test.go Adds comprehensive test suite for sort operators covering initialization, sorting operations, comparison functions, and edge cases
src/Backend/opti-sql-go/operators/aggr/sort.go Implements SortExec and TopKSortExec operators with support for multi-key sorting and various Arrow data types
src/Backend/opti-sql-go/operators/aggr/singleAggr.go Renames child field to input in AggrExec for consistency
src/Backend/opti-sql-go/operators/aggr/having.go Renames batch variable to childBatch and updates related references for clarity
src/Backend/opti-sql-go/operators/aggr/groupBy.go Renames child field to input in GroupByExec for consistency
src/Backend/opti-sql-go/go.sum Adds go-jose/go-jose/v4 dependency for testing utilities
src/Backend/opti-sql-go/go.mod Updates Go version to 1.24.0 and adds go-jose dependency

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

Comment thread src/Backend/opti-sql-go/operators/aggr/sort.go Outdated
Comment thread src/Backend/opti-sql-go/operators/aggr/sort.go
Comment thread src/Backend/opti-sql-go/operators/aggr/sort_test.go Outdated
Comment thread src/Backend/opti-sql-go/operators/aggr/sort.go Outdated
Comment thread src/Backend/opti-sql-go/operators/aggr/sort.go
Comment thread src/Backend/opti-sql-go/operators/aggr/sort.go
Comment thread src/Backend/opti-sql-go/operators/aggr/sort.go
Comment thread src/Backend/opti-sql-go/operators/aggr/sort_test.go Outdated
Comment thread src/Backend/opti-sql-go/operators/aggr/sort.go
Comment thread src/Backend/opti-sql-go/operators/aggr/sort_test.go Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 10 changed files in this pull request and generated 24 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

Comment thread src/Backend/opti-sql-go/operators/aggr/sort.go
Comment thread src/Backend/opti-sql-go/operators/aggr/sort.go Outdated
Comment thread src/Backend/opti-sql-go/operators/aggr/sort.go
Comment thread src/Backend/opti-sql-go/operators/aggr/sort.go
Comment thread src/Backend/opti-sql-go/operators/aggr/sort.go Outdated
Comment thread src/Backend/opti-sql-go/operators/aggr/sort.go Outdated
Comment thread src/Backend/opti-sql-go/operators/filter/limit.go
Comment thread src/Backend/opti-sql-go/operators/aggr/sort.go Outdated
Comment thread src/Backend/opti-sql-go/operators/aggr/sort_test.go Outdated
Comment thread src/Backend/opti-sql-go/operators/aggr/sort.go
@Rich-T-kid Rich-T-kid merged commit 89beff7 into pre-release Nov 30, 2025
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.

2 participants