-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-54094][SQL] Extract common methods to KafkaOffsetReaderBase #52788
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
|
When reviewing #52729, found that |
dongjoon-hyun
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.
Given the size of code, we need JIRA ID for this PR, @viirya . 😄
|
Ha, okay @dongjoon-hyun 😄 |
connector/kafka-0-10-sql/src/main/scala/org/apache/spark/sql/kafka010/KafkaOffsetReader.scala
Outdated
Show resolved
Hide resolved
connector/kafka-0-10-sql/src/main/scala/org/apache/spark/sql/kafka010/KafkaOffsetReader.scala
Outdated
Show resolved
Hide resolved
connector/kafka-0-10-sql/src/main/scala/org/apache/spark/sql/kafka010/KafkaOffsetReader.scala
Outdated
Show resolved
Hide resolved
dongjoon-hyun
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.
+1, LGTM (with the dedicated JIRA ID and a few style comments).
|
Thank you @dongjoon-hyun |
What changes were proposed in this pull request?
This patch extracts the same method
getOffsetRangesFromResolvedOffsetsfrom twoKafkaOffsetReaderimplementations.Why are the changes needed?
When reviewing #52729, found that
KafkaOffsetReaderConsumerandKafkaOffsetReaderAdminhave the exactly samegetOffsetRangesFromResolvedOffsetsmethod. The method is actually long so seems good to extract them to common one.Does this PR introduce any user-facing change?
No
How was this patch tested?
Existing tests.
Was this patch authored or co-authored using generative AI tooling?
No