Skip to content

Support compression in spill files #16130

Description

@2010YOUY01

Is your feature request related to a problem or challenge?

Part of #16065

In memory-limited queries, temporary results will be written to disk to reduce memory pressure. Now those spills are using plain arrow encoding, they can be applied some general-purpose compression like lz4 and zstd for more efficient disk space usage.

Describe the solution you'd like

  1. Add a configuration for spill compression type
  2. Pass an option to Arrow-IPC writer/reader for compression

Describe alternatives you've considered

No response

Additional context

No response

Activity

  1. 2010YOUY01 commented on May 21, 2025

    @2010YOUY01
    ContributorAuthor

    I think this issue can be added to your current TODO list @ding-young.

    In the future, if we introduce a dedicated spill format, we might revise the implementation to apply compression to the entire spill file.
    But I think it's good to be implemented now since the code footprint is small (should be just passing an option into Arrow IPC reader/writer)

  2. ding-young commented on May 21, 2025

    @ding-young
    Contributor

    Sure. I also think that introducing compression option first is good to start though we may try more complicated techniques.

  3. ding-young commented on May 21, 2025

    @ding-young
    Contributor

    take

  4. Omega359 commented on May 27, 2025

    @Omega359
    Contributor

    related/prior art: #14078 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions