-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add schema as input to the decoder. #12981
Conversation
@Jackie-Jiang Addressed the comment in #12813. Had to close that pull request due to some issues with my local branch. deprecated the no schema init and make the schema init throw an exception by default which is handled in StreamDataProvoder |
b8e087b
to
db41f1e
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #12981 +/- ##
============================================
+ Coverage 61.75% 62.17% +0.42%
+ Complexity 207 198 -9
============================================
Files 2436 2502 +66
Lines 133233 136586 +3353
Branches 20636 21145 +509
============================================
+ Hits 82274 84928 +2654
- Misses 44911 45382 +471
- Partials 6048 6276 +228
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
db41f1e
to
ddefc08
Compare
pinot-spi/src/main/java/org/apache/pinot/spi/stream/StreamMessageDecoder.java
Outdated
Show resolved
Hide resolved
pinot-spi/src/main/java/org/apache/pinot/spi/stream/StreamMessageDecoder.java
Outdated
Show resolved
Hide resolved
f59bbaf
to
a0cf980
Compare
a0cf980
to
893f4f9
Compare
try { | ||
decoder.init(decoderProperties, fieldsToRead, _streamConfig.getTopicName()); | ||
} catch (UnsupportedOperationException e) { | ||
// Backward compatibility | ||
decoder.init(fieldsToRead, _streamConfig, _tableConfig, _schema); | ||
} |
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.
With the default fallback in the interface, we should just invoke the new method
...re/src/main/java/org/apache/pinot/core/data/manager/realtime/RealtimeSegmentDataManager.java
Outdated
Show resolved
Hide resolved
pinot-spi/src/main/java/org/apache/pinot/spi/stream/StreamMessageDecoder.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Xiaotian (Jackie) Jiang <[email protected]>
resolves #12521