Skip to content

Dell: Preserve known ECS input file lengths - #17870

Open
charliec05 wants to merge 1 commit into
apache:mainfrom
charliec05:agent/ecs-known-length
Open

Dell: Preserve known ECS input file lengths#17870
charliec05 wants to merge 1 commit into
apache:mainfrom
charliec05:agent/ecs-known-length

Conversation

@charliec05

Copy link
Copy Markdown
Contributor

Summary

  • pass known file lengths from EcsFileIO into EcsInputFile
  • cache the supplied length and validate that it is non-negative
  • verify that reading a known length does not request object metadata

This avoids redundant ECS HEAD requests when Iceberg already knows a data, delete, or manifest file size.

Closes #17054

Testing

  • ./gradlew :iceberg-dell:test

AI Disclosure

  • Model: GPT-5
  • Platform/Tool: OpenAI Codex
  • Human Oversight: fully reviewed
  • Prompt Summary: A detailed, repository-specific prompt requested a minimal known-length propagation fix, a no-network regression test, formatting, and full Dell module validation.

Carry known lengths into ECS input files so scan planning avoids redundant object metadata requests.

Generated-by: Codex
@github-actions github-actions Bot added the DELL label Aug 28, 2026

@singhpk234 singhpk234 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The change in general LGTM
Added a feedback for test assertion


InputFile inputFile = fileIO.newInputFile(location, 10L);

assertThat(inputFile.getLength()).as("File length should use the known value").isEqualTo(10L);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

how are we asserting no request is made ?

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dell: EcsFileIO does not cache known file length, causing redundant HEAD requests

2 participants