Skip to content

Process only files smaller than the threshold for OPTIMIZE#20121

Merged
findepi merged 1 commit intotrinodb:masterfrom
findinpath:findinpath/delta-optimize-bugfix
Dec 15, 2023
Merged

Process only files smaller than the threshold for OPTIMIZE#20121
findepi merged 1 commit intotrinodb:masterfrom
findinpath:findinpath/delta-optimize-bugfix

Conversation

@findinpath
Copy link
Copy Markdown
Contributor

@findinpath findinpath commented Dec 14, 2023

Description

Fixes #20088

Additional context and related issues

Commits are taken out of #20054

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`)

Copy link
Copy Markdown
Member

@findepi findepi left a comment

Choose a reason for hiding this comment

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

"Rewrite data file filtering logic for OPTIMIZE statements"

Filter for processing the files which are smaller than
the threshold and consider a partition for optimization
if and only if it contains at least two such files.
@findinpath findinpath force-pushed the findinpath/delta-optimize-bugfix branch from 56687b3 to 355311a Compare December 14, 2023 21:21
@findinpath findinpath self-assigned this Dec 14, 2023
@findinpath findinpath requested a review from homar December 14, 2023 21:34
@findepi findepi merged commit 3aea15e into trinodb:master Dec 15, 2023
@github-actions github-actions bot added this to the 436 milestone Dec 15, 2023
@jkylling
Copy link
Copy Markdown
Contributor

Thanks a lot for fixing!

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

Labels

cla-signed delta-lake Delta Lake connector

Development

Successfully merging this pull request may close these issues.

OPTIMIZE of Delta tables copies small files unchanged

3 participants