[SPARK-28142][SS][TEST][FOLLOWUP] Add configuration check test on Kafka continuous stream#24999
[SPARK-28142][SS][TEST][FOLLOWUP] Add configuration check test on Kafka continuous stream#24999HeartSaVioR wants to merge 8 commits intoapache:masterfrom
Conversation
|
cc. @gatorsmile @gaborgsomogyi @HyukjinKwon @gaborgsomogyi Please feel free to leverage this and add a new test for micro-batch case in #24967. |
|
@HeartSaVioR thanks for pulling me in, reviewing it through... |
|
Test build #106994 has finished for PR 24999 at commit
|
gaborgsomogyi
left a comment
There was a problem hiding this comment.
Basically look good and works properly.
...l/kafka-0-10-sql/src/test/scala/org/apache/spark/sql/kafka010/KafkaSourceProviderSuite.scala
Outdated
Show resolved
Hide resolved
|
Test build #107000 has finished for PR 24999 at commit
|
gaborgsomogyi
left a comment
There was a problem hiding this comment.
LGTM. Thanks for the change.
...l/kafka-0-10-sql/src/test/scala/org/apache/spark/sql/kafka010/KafkaSourceProviderSuite.scala
Outdated
Show resolved
Hide resolved
|
@gaborgsomogyi Ah, I think I just realized what you meant. The last commit reflects it. Sorry about confusion. |
|
@HeartSaVioR that said I'm happy with 2 ways. Either generalize or split creation and value fetch. |
|
Test build #107006 has finished for PR 24999 at commit
|
|
Test build #107007 has finished for PR 24999 at commit
|
|
Assuming @gaborgsomogyi thinks the recent change is also good as well... |
|
Looks fine to me but I think we better have a confirmation from @gatorsmile since the comment is his. |
|
OK we can wait @gatorsmile . Thanks @HyukjinKwon for reviewing! |
|
We had better use a meaningful title and description for every commits. Please don't use the same title in the follow-up PRs. |
...l/kafka-0-10-sql/src/test/scala/org/apache/spark/sql/kafka010/KafkaSourceProviderSuite.scala
Show resolved
Hide resolved
...l/kafka-0-10-sql/src/test/scala/org/apache/spark/sql/kafka010/KafkaSourceProviderSuite.scala
Show resolved
Hide resolved
Thanks for the note! I just rewrote the title of this PR to be self-described. |
...l/kafka-0-10-sql/src/test/scala/org/apache/spark/sql/kafka010/KafkaSourceProviderSuite.scala
Show resolved
Hide resolved
There was a problem hiding this comment.
I'm not a big fan of the assumption for reusing of the upcoming PRs. But, I believe @HeartSaVioR 's suggestion. However, we should remove the repetition.
|
Got it. I respect the direction on avoiding redundant code whenever possible, and try to inline if it's only used once. Here's an update. I just added UT on what can be tested on micro-batch stream without #24967, and try to inline, deduplicate, etc. I guess @gaborgsomogyi wants to add new test which inspects other part of KafkaMicroBatchStream (which newly added UT doesn't cover), so once this gets merged, @gaborgsomogyi could extract some methods if he needs to reuse some parts of test. |
|
Sorry let me refine once more. I found missing piece on review comment. |
|
Test build #107158 has finished for PR 24999 at commit
|
|
Test build #107160 has finished for PR 24999 at commit
|
|
Test build #107162 has finished for PR 24999 at commit
|
|
Thank you for updating, @HeartSaVioR . I'll review today again. |
...l/kafka-0-10-sql/src/test/scala/org/apache/spark/sql/kafka010/KafkaSourceProviderSuite.scala
Outdated
Show resolved
Hide resolved
...l/kafka-0-10-sql/src/test/scala/org/apache/spark/sql/kafka010/KafkaSourceProviderSuite.scala
Show resolved
Hide resolved
|
Test build #107212 has finished for PR 24999 at commit
|
dongjoon-hyun
left a comment
There was a problem hiding this comment.
+1, LGTM. Merged to master.
Thank you, @HeartSaVioR and @gaborgsomogyi .
|
Thanks all for reviewing and merging! |
What changes were proposed in this pull request?
This patch adds missing UT which tests the changed behavior of original patch #24942.
How was this patch tested?
Newly added UT.