Skip to content

Make Java-backed read coalescing configurable #11366

Closed

Description

@ChristopherWirt

Java-backed Vortex readers cannot configure IO coalescing. JavaReadable::coalesce_config() unconditionally returns CoalesceConfig::object_storage(): a 1 MiB gap and 16 MiB maximum merged span on upstream develop at 2e1b05b84.

Different storage systems and projections need different tradeoffs between request count and extra bytes read. A caller supplying NativeReadable, including Spark's Hadoop-backed readable, currently cannot make that choice.

Expose default coalesceDistance() and coalesceMaxSize() methods on NativeReadable, capture and validate them once when registering a source, and expose matching Spark read options. Preserve upstream's existing 1 MiB/16 MiB defaults. Validate non-negative distance and positive maximum, with alignment headroom for Java's ByteBuffer capacity limit.

QC issue #94 and QC PR #95 provide an implementation. QC uses a different default gap (64 KiB); the upstream port must retain 1 MiB. The proposed DataFusion-specific local IO policy in #11338 does not expose configuration to Java callers.

Splitting individual reads larger than ByteBuffer's capacity is a separate follow-up; this change only makes the existing coalescing limits configurable.

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