Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable hive splits for uncompressed JSON files with S3 Select pushdown #14040

Merged
merged 1 commit into from Sep 20, 2022

Conversation

dnanuti
Copy link
Member

@dnanuti dnanuti commented Sep 7, 2022

Description

Scan range allows S3 Select to query uncompressed files at a finer granularity than the entire object, by providing a byte range to SelectObjectContent requests. Support for CSV input files was added in revision 0b8d11c. This change enables hive internal splits for S3 Select uncompressed JSON input.
Documentation updates will come in a separate PR, as this is already quite large.

Non-technical explanation

Trino client will return results faster when S3 Select pushdown is enabled for uncompressed JSON files:
set SESSION hive.s3_select_pushdown_enabled=true;

Release notes

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

# Section
* Enabled Hive splits for JSON inputs in S3 Select connector by leveraging the scan range feature of the service

Copy link
Contributor

@preethiratnam preethiratnam left a comment

Choose a reason for hiding this comment

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

Overall looks good, left some nitpicks below.

@findinpath
Copy link
Contributor

nit :

Commit comment Support for CSV input files was added in revision https://github.com/dnanuti/trino/commit/0b8d11cb826dcc01f952c9dc1722a76139a67bdd. is not relevant for this commit.

Copy link
Contributor

@findinpath findinpath left a comment

Choose a reason for hiding this comment

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

Looks good overall. Try splitting the PR in multiple commits for an easier review/maintenance.

@dnanuti dnanuti force-pushed the master branch 3 times, most recently from c0774ff to b6a84a2 Compare September 14, 2022 12:46
Scan range allows S3 Select to query uncompressed files at a finer granularity
than the entire object, by providing a byte range to SelectObjectContent
requests. This change enables hive internal splits for S3 Select uncompressed
JSON input.
@arhimondr arhimondr merged commit e17dc3f into trinodb:master Sep 20, 2022
@github-actions github-actions bot added this to the 397 milestone Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

5 participants