Skip to content

Let a scan limit how many splits it decodes at once #11124

Closed

Description

@ChristopherWirt

Problem or motivation

A scan keeps 4 × available_parallelism() splits in flight (RepeatedScan::execute_stream), and nothing in ScanRequest, JNI or Spark can lower that.

A full scan of a 180 MB list-layout file, measuring live native bytes:

Splits in flight Peak live Time
48 (default, 4 × 12 cores) 3.65 GiB 1.0 s
12 1.18 GiB 1.0 s

On this file, fewer splits in flight costs no time and cuts memory by two thirds.

Proposed solution

A per-scan limit on how many splits are decoded at once:

  • ScanRequest::split_concurrency: Option<NonZeroUsize>, used by both layout data sources;
  • ScanOptions.splitConcurrency() in JNI;
  • a vortex.splitConcurrency Spark read option.

Additional context

This reduces the impact of #11123 but doesn't fix it. The root cause there is scans splitting wide nested files into tiny ranges that each decode whole column chunks.

I have a PR ready.

Activity

  1. robert3005 commented on Nov 11, 2026

    @robert3005
    Contributor

    fixed in #11127

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions