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
Adding support for Protobuf input format #5293
Conversation
Should I also make changes in org.apache.pinot.hadoop.job.mappers.SegmentCreationMapper to pass custom Reader config as it is currently done for CSV and Thrift. |
Yes, that would be great. |
I think that's deprecated and all configurations will go through SegmentGenerationJobSpec. https://github.com/apache/incubator-pinot/blob/master/pinot-spi/src/main/java/org/apache/pinot/spi/ingestion/batch/spec/RecordReaderSpec.java |
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.
Minor comments
...rotobuf/src/main/java/org/apache/pinot/plugin/inputformat/protobuf/ProtoBufRecordReader.java
Outdated
Show resolved
Hide resolved
...f/src/main/java/org/apache/pinot/plugin/inputformat/protobuf/ProtoBufRecordReaderConfig.java
Outdated
Show resolved
Hide resolved
@KKcorps is this ready to go? |
@kishoreg Yes, it is complete from my end |
...rotobuf/src/main/java/org/apache/pinot/plugin/inputformat/protobuf/ProtoBufRecordReader.java
Outdated
Show resolved
Hide resolved
...rotobuf/src/main/java/org/apache/pinot/plugin/inputformat/protobuf/ProtoBufRecordReader.java
Outdated
Show resolved
Hide resolved
...rotobuf/src/main/java/org/apache/pinot/plugin/inputformat/protobuf/ProtoBufRecordReader.java
Outdated
Show resolved
Hide resolved
...rotobuf/src/main/java/org/apache/pinot/plugin/inputformat/protobuf/ProtoBufRecordReader.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/apache/pinot/plugin/inputformat/protobuf/ProtoBufRecordExtractorConfig.java
Outdated
Show resolved
Hide resolved
pinot-plugins/pinot-input-format/pinot-protobuf/src/test/resources/sample.proto
Show resolved
Hide resolved
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.
Just 1 comment. LGTM otherwise
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.
This is awesome! Thanks for wrapping this up
Linking to issue #5269 |
Sample config for Ingestion