Skip to content

fix(mergetree): use memory pool for arrow operations#2

Closed
zjw1111 wants to merge 1 commit into
mainfrom
codex/arrow-memory-pool
Closed

fix(mergetree): use memory pool for arrow operations#2
zjw1111 wants to merge 1 commit into
mainfrom
codex/arrow-memory-pool

Conversation

@zjw1111

@zjw1111 zjw1111 commented May 11, 2026

Copy link
Copy Markdown
Owner

Purpose

Linked issue: N/A

Route Arrow sort and spill IPC operations through the project MemoryPool so allocations are accounted consistently during in-memory key-value sorting and external spill read/write paths.

Tests

  • cmake --build build --target paimon-core-test

API and Format

No public API, storage format, or protocol changes.

Documentation

No new feature documentation required.

Generative AI tooling

Generated-by: OpenAI Codex

@zjw1111

zjw1111 commented May 11, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@zjw1111
zjw1111 marked this pull request as ready for review May 11, 2026 06:35

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request integrates custom memory management into Arrow-related operations within the Paimon core. It introduces the use of arrow::MemoryPool (derived from Paimon's MemoryPool) in KeyValueInMemoryRecordReader, SpillReader, and SpillWriter. These components now explicitly pass the memory pool to Arrow compute functions and IPC read/write operations to ensure consistent memory allocation and tracking. I have no feedback to provide.

@zjw1111

zjw1111 commented May 11, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@zjw1111
zjw1111 force-pushed the codex/arrow-memory-pool branch from 433c0ac to 4bb4dd5 Compare May 11, 2026 06:48
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@zjw1111 zjw1111 closed this May 11, 2026
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