-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-18425][Structured Streaming][Tests] Test CompactibleFileStreamLog directly
#15870
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
Conversation
|
Test build #68580 has finished for PR 15870 at commit
|
|
To make it easier to review, this patch was made of two commits:
|
|
Thanks for doing this. Could you resolve the conflicts, please? |
|
@zsxwing thanks. I'm rebasing right now. |
3014a03 to
bb5ab33
Compare
|
Test build #68879 has finished for PR 15870 at commit
|
zsxwing
left a comment
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.
Looks good. Just one nit.
| import java.nio.charset.StandardCharsets._ | ||
|
|
||
| class CompactibleFileStreamLogSuite extends SparkFunSuite { | ||
| import scala.language.implicitConversions |
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.
nit: unused import
|
Test build #68973 has finished for PR 15870 at commit
|
|
LGTM. Thanks! Merging to master and 2.1. |
…mLog` directly ## What changes were proposed in this pull request? Right now we are testing the most of `CompactibleFileStreamLog` in `FileStreamSinkLogSuite` (because `FileStreamSinkLog` once was the only subclass of `CompactibleFileStreamLog`, but now it's not the case any more). Let's refactor the tests so that `CompactibleFileStreamLog` is directly tested, making future changes (like #15828, #15827) to `CompactibleFileStreamLog` much easier to test and much easier to review. ## How was this patch tested? the PR itself is about tests Author: Liwei Lin <lwlin7@gmail.com> Closes #15870 from lw-lin/test-compact-1113. (cherry picked from commit ebeb083) Signed-off-by: Shixiong Zhu <shixiong@databricks.com>
…mLog` directly ## What changes were proposed in this pull request? Right now we are testing the most of `CompactibleFileStreamLog` in `FileStreamSinkLogSuite` (because `FileStreamSinkLog` once was the only subclass of `CompactibleFileStreamLog`, but now it's not the case any more). Let's refactor the tests so that `CompactibleFileStreamLog` is directly tested, making future changes (like apache#15828, apache#15827) to `CompactibleFileStreamLog` much easier to test and much easier to review. ## How was this patch tested? the PR itself is about tests Author: Liwei Lin <lwlin7@gmail.com> Closes apache#15870 from lw-lin/test-compact-1113.
…mLog` directly ## What changes were proposed in this pull request? Right now we are testing the most of `CompactibleFileStreamLog` in `FileStreamSinkLogSuite` (because `FileStreamSinkLog` once was the only subclass of `CompactibleFileStreamLog`, but now it's not the case any more). Let's refactor the tests so that `CompactibleFileStreamLog` is directly tested, making future changes (like apache#15828, apache#15827) to `CompactibleFileStreamLog` much easier to test and much easier to review. ## How was this patch tested? the PR itself is about tests Author: Liwei Lin <lwlin7@gmail.com> Closes apache#15870 from lw-lin/test-compact-1113.
What changes were proposed in this pull request?
Right now we are testing the most of
CompactibleFileStreamLoginFileStreamSinkLogSuite(becauseFileStreamSinkLogonce was the only subclass ofCompactibleFileStreamLog, but now it's not the case any more).Let's refactor the tests so that
CompactibleFileStreamLogis directly tested, making future changes (like #15828, #15827) toCompactibleFileStreamLogmuch easier to test and much easier to review.How was this patch tested?
the PR itself is about tests