Uh oh!
There was an error while loading. Please reload this page.
[SPARK-23539][SS] Add support for Kafka headers in Structured Streaming - #22282
[SPARK-23539][SS] Add support for Kafka headers in Structured Streaming#22282dongjinleekr wants to merge 8 commits into
Conversation
dongjinleekr
commented
Aug 30, 2018
As you can see, this PR consists of 3 parts:
I have the following questions:
Please have a look when you are free. Thanks. |
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
229aac8 to
8a5ef14Compare
This comment has been minimized.
This comment has been minimized.
HeartSaVioR
left a comment
There was a problem hiding this comment.
The change mostly looks good. Left some comments to point some possible minors as well as style nits.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
2254009 to
253a894Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
253a894 to
b0f64e9Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
## What changes were proposed in this pull request? Fix unused imports & outdated comments on `kafka-0-10-sql` module. (Found while I was working on [SPARK-23539](#22282)) ## How was this patch tested? Existing unit tests. Closes#22342 from dongjinleekr/feature/fix-kafka-sql-trivials. Authored-by: Lee Dongjin <dongjin@apache.org> Signed-off-by: Sean Owen <sean.owen@databricks.com> (cherry picked from commit 458f501) Signed-off-by: Sean Owen <sean.owen@databricks.com>
## What changes were proposed in this pull request? Fix unused imports & outdated comments on `kafka-0-10-sql` module. (Found while I was working on [SPARK-23539](#22282)) ## How was this patch tested? Existing unit tests. Closes#22342 from dongjinleekr/feature/fix-kafka-sql-trivials. Authored-by: Lee Dongjin <dongjin@apache.org> Signed-off-by: Sean Owen <sean.owen@databricks.com>
dongjinleekr
commented
Sep 10, 2018
retest this please. |
SparkQA
commented
Sep 11, 2018
Test build #95906 has finished for PR 22282 at commit
|
220bd0a to
2c48aaeComparedongjinleekr
commented
Nov 12, 2018
cc/ @zsxwing@tdas@dongjoon-hyun@srowen Rebased onto the latest master. Please have a look when you are free. Thanks in advance. |
SparkQA
commented
Nov 12, 2018
Test build #98726 has finished for PR 22282 at commit
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
2c48aae to
9fad0caCompareSparkQA
commented
Feb 10, 2019
Test build #102141 has finished for PR 22282 at commit
|
dongjinleekr
commented
Feb 11, 2019
retest this please. @HyukjinKwon Could you have a look when you are free? cc/ @kiszk@zsxwing@tdas |
HyukjinKwon
commented
Feb 11, 2019
retest this please |
SparkQA
commented
Feb 11, 2019
Test build #102174 has finished for PR 22282 at commit
|
zsxwing
commented
Feb 11, 2019
If a user uses a Kafka cluster which runs using an old version that doesn't support Kafka headers, will their query fail? |
| } | ||
| val headersExpression = inputSchema | ||
| .find(_.name == KafkaWriter.HEADERS_ATTRIBUTE_NAME).getOrElse( | ||
| Literal(CatalystTypeConverters.convertToCatalyst(null), |
There was a problem hiding this comment.
I tried, but the formatter reverts the indention to the current status.
There was a problem hiding this comment.
The style checker or something else?
There was a problem hiding this comment.
The code formatter of the IDE. Also, it passes the style checker of mvn.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
dongjinleekr
commented
Sep 11, 2019
@srowen Fixed, with removing redundant |
SparkQA
commented
Sep 11, 2019
Test build #110456 has finished for PR 22282 at commit
|
srowen
commented
Sep 12, 2019
I think it's OK @dongjinleekr , just needs a rebase now. |
…TRUCT<key:STRING,value:BINARY>>)'
Move projection methods in `KafkaOffsetReader` to `KafkaRecordToRowConverter`.
243809f to
de02de4Comparedongjinleekr
commented
Sep 13, 2019
@srowen Here is the rebase. Thanks for reviewing! 😄 |
SparkQA
commented
Sep 13, 2019
Test build #110550 has finished for PR 22282 at commit
|
srowen
commented
Sep 13, 2019
Merged to master |
dongjoon-hyun
commented
Sep 13, 2019
Great! @dongjinleekr , @srowen , @HeartSaVioR , @zsxwing ! |
HeartSaVioR
commented
Sep 13, 2019
Finally! Well done, @dongjinleekr ! |
## What changes were proposed in this pull request? This update adds support for Kafka Headers functionality in Structured Streaming. ## How was this patch tested? With following unit tests: - KafkaRelationSuite: "default starting and ending offsets with headers" (new) - KafkaSinkSuite: "batch - write to kafka" (updated) Closesapache#22282 from dongjinleekr/feature/SPARK-23539. Lead-authored-by: Lee Dongjin <dongjin@apache.org> Co-authored-by: Jungtaek Lim <kabhwan@gmail.com> Signed-off-by: Sean Owen <sean.owen@databricks.com>
gaborgsomogyi
commented
Sep 27, 2019
Just gone through, good job @dongjinleekr |
What changes were proposed in this pull request?
This update adds support for Kafka Headers functionality in Structured Streaming.
How was this patch tested?
With following unit tests: