-
Notifications
You must be signed in to change notification settings - Fork 3k
Spark 4.1: Optimize ExpireSnapshotsSparkAction with manifest-level filtering #15154
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
base: main
Are you sure you want to change the base?
Changes from all commits
987b454
6fcf4c3
323b7ac
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1203,7 +1203,7 @@ public void testUseLocalIterator() { | |
| assertThat(jobsRunDuringStreamResults) | ||
| .as( | ||
| "Expected total number of jobs with stream-results should match the expected number") | ||
| .isEqualTo(4L); | ||
| .isEqualTo(12L); | ||
|
||
| }); | ||
| } | ||
|
|
||
|
|
||
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.
Using
isEmpty()on a Dataset triggers a Spark action that collects data to the driver. Consider usingfirst()wrapped in a try-catch ortake(1).length == 0to avoid potentially expensive operations when checking if a dataset is empty.