Skip to content

Conversation

@raunaqmorarka
Copy link
Member

Description

Allows S3InputStream#closeStream to avoid aborting connections
Allows filsystem cache to avoid extra FS operations

Additional context and related issues

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

## Section
* Fix some things. ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label Sep 11, 2025
@github-actions github-actions bot added the hive Hive connector label Sep 11, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR modifies the LinePageSourceFactory to pre-populate file metadata (length and modified time) when creating TrinoInputFile objects. This optimization allows S3InputStream to avoid aborting connections and enables the filesystem cache to avoid extra filesystem operations by providing metadata upfront rather than fetching it lazily.

  • Pre-populates TrinoInputFile with file length and modification time
  • Updates method signature to accept fileModifiedTime parameter
  • Passes estimatedFileSize and fileModifiedTime to the TrinoInputFile constructor

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@wendigo
Copy link
Contributor

wendigo commented Sep 11, 2025

Failure is related

Allows S3InputStream#closeStream to avoid aborting connections
Allows filsystem cache to avoid extra FS operations
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Contributor

@wendigo wendigo left a comment

Choose a reason for hiding this comment

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

LGTM

@raunaqmorarka raunaqmorarka merged commit 2bafacd into trinodb:master Sep 12, 2025
118 of 120 checks passed
@raunaqmorarka raunaqmorarka deleted the line-length branch September 12, 2025 03:46
@github-actions github-actions bot added this to the 477 milestone Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed hive Hive connector

Development

Successfully merging this pull request may close these issues.

4 participants