Add information from written files to Iceberg conflict detection#24470
Merged
raunaqmorarka merged 3 commits intotrinodb:masterfrom Feb 12, 2025
Merged
Add information from written files to Iceberg conflict detection#24470raunaqmorarka merged 3 commits intotrinodb:masterfrom
raunaqmorarka merged 3 commits intotrinodb:masterfrom
Conversation
findinpath
reviewed
Dec 16, 2024
078a427 to
9d8bfd3
Compare
findinpath
reviewed
Dec 16, 2024
findinpath
reviewed
Dec 16, 2024
0bc5d55 to
44dd035
Compare
ebyhr
reviewed
Dec 20, 2024
7f3392a to
08e0dd7
Compare
findinpath
reviewed
Jan 7, 2025
findinpath
reviewed
Jan 7, 2025
Member
There was a problem hiding this comment.
You can potentially use something like io.trino.plugin.iceberg.IcebergSplitSource#createFileStatisticsDomain for un-partitioned columns. Not necessary for current PR though.
c8232a1 to
8e73d7e
Compare
|
This pull request has gone a while without any activity. Tagging for triage help: @mosabua |
8e73d7e to
2158554
Compare
2158554 to
31f23c4
Compare
31f23c4 to
4db2b70
Compare
raunaqmorarka
approved these changes
Feb 7, 2025
ebyhr
approved these changes
Feb 7, 2025
4db2b70 to
a4bad0c
Compare
a4bad0c to
8e7d1c0
Compare
Member
|
/test-with-secrets sha=8e7d1c0799730d7da18522cc142b023193d22848 |
|
The CI workflow run with tests that require additional secrets has been started: https://github.com/trinodb/trino/actions/runs/13238104125 |
findinpath
reviewed
Feb 11, 2025
| return fileBasedConflictDetectionEnabled; | ||
| } | ||
|
|
||
| @Config("iceberg.file-based-conflict-detection") |
Contributor
There was a problem hiding this comment.
@ConfigHidden - this is a kill-switch as i see it .
Member
There was a problem hiding this comment.
That doesn't mean it has to be hidden, it should just be removed eventually
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Currently, Iceberg's concurrent write conflict detection is based on predicates received from the engine. In more complicated cases (like joins, merges, or different type comparisons), this information is not available at the connector level.
This PR aims to take partition information from the actual written files as a source for the conflict detection system. If, during a write, created files are only for some partitions, we can check only those partitions for potential conflicts from concurrent writes.
Additional context and related issues
Release notes
( ) 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.
(x) Release notes are required, with the following suggested text: