Skip to content

chore(sql): port first(array) to use array sink#6322

Merged
bluestreak01 merged 5 commits intoquestdb:masterfrom
mcadariu:port_first_array_function_to_off_heap_data_structure
Oct 30, 2025
Merged

chore(sql): port first(array) to use array sink#6322
bluestreak01 merged 5 commits intoquestdb:masterfrom
mcadariu:port_first_array_function_to_off_heap_data_structure

Conversation

@mcadariu
Copy link
Copy Markdown
Contributor

@mcadariu mcadariu commented Oct 28, 2025

This PR relates to #4120.

In #6237 the GroupByArraySink abstraction was introduced. This enables simplifying the FirstArrayGroupByFunction because it can delegate the manual array handling to it. In addition its implementation will be symmetrical with last(array) from #6291.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Oct 28, 2025

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@mcadariu mcadariu changed the title Port FirstArrayGroupByFunction to off-heap data structure Port first(array) to use off-heap data structure Oct 28, 2025
@mcadariu
Copy link
Copy Markdown
Contributor Author

Thanks for the quick review!

@puzpuzpuz puzpuzpuz self-requested a review October 29, 2025 09:10
puzpuzpuz
puzpuzpuz previously approved these changes Oct 29, 2025
Copy link
Copy Markdown
Contributor

@puzpuzpuz puzpuzpuz left a comment

Choose a reason for hiding this comment

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

nit: would be good to have a dedicated test for the first(array) function.

@puzpuzpuz
Copy link
Copy Markdown
Contributor

Thanks for going an extra mile with this first(array) clean up!

@ideoma ideoma changed the title Port first(array) to use off-heap data structure perf(sql): reduce GC, heap memory usage by porting first(array) to use off-heap data structure Oct 29, 2025
@puzpuzpuz puzpuzpuz changed the title perf(sql): reduce GC, heap memory usage by porting first(array) to use off-heap data structure chore(sql): port first(array) to use array sink Oct 30, 2025
@bluestreak01 bluestreak01 merged commit 90da19d into questdb:master Oct 30, 2025
21 checks passed
nwoolmer added a commit to questdb/documentation that referenced this pull request Nov 16, 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.

3 participants