Skip to content

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

Merged
arhimondr merged 1 commit intotrinodb:masterfrom
dnanuti:master
Sep 20, 2022
Merged

Enable hive splits for uncompressed JSON files with S3 Select pushdown#14040
arhimondr merged 1 commit intotrinodb:masterfrom
dnanuti:master

Conversation

@dnanuti
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

5 participants