-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Kernel]Cache the crc info for a snapshot if its version's checksum file is read #4113
Merged
Merged
Changes from 15 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
b1b05e5
cache read crc
huan233usc 0302ca3
add tests
huan233usc d0a832b
remove 2rd crc read
huan233usc f1967fe
remove logging
huan233usc 89a4bc3
add documents
huan233usc 69b5deb
add tests
huan233usc 4638add
fix nit
huan233usc d333b00
resolve comments
huan233usc b67cae0
add comment
huan233usc c3ea84e
rename utils
huan233usc 0f02053
fix java fmt
huan233usc 90db898
fix lower bound
huan233usc a90b3a6
add test
huan233usc 6609561
remove empty line
huan233usc 25770bf
fix if order
huan233usc 1cb8473
fix misc indent
huan233usc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -384,7 +384,7 @@ class LogReplayEngineMetricsSuite extends AnyFunSuite with TestUtils { | |
// Tests for loading P & M through checksums files // | ||
///////////////////////////////////////////////////////////////////////////////////////////////// | ||
|
||
Seq(-1L, 3L, 4L).foreach { version => // -1 means latest version | ||
Seq(-1L, 0L, 3L, 4L).foreach { version => // -1 means latest version | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 0L for the case https://github.com/delta-io/delta/pull/4113/files#r1940334805 |
||
test(s"checksum found at the read version: ${if (version == -1) "latest" else version}") { | ||
withTempDirAndMetricsEngine { (path, engine) => | ||
// Produce a test table with 0 to 11 .json, 0 to 11.crc, 10.checkpoint.parquet | ||
|
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there any reason that we only save it if it's the current version? in the future won't we also want to still save the info for an earlier one? (to pass along as much info as possible)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
current snapshot is sufficient for unblocking simple crc write, so I only expose the currently version. We could incrementally expose more if needed in the future.