-
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
Make RecordEnricher extend RecordTransformer #14601
Make RecordEnricher extend RecordTransformer #14601
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #14601 +/- ##
============================================
+ Coverage 61.75% 63.96% +2.21%
- Complexity 207 1572 +1365
============================================
Files 2436 2687 +251
Lines 133233 147650 +14417
Branches 20636 22629 +1993
============================================
+ Hits 82274 94442 +12168
- Misses 44911 46270 +1359
- Partials 6048 6938 +890
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
09c5d51
to
cc9e2a4
Compare
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.
Much needed clean up. Thanks Jackie !
...cal/src/main/java/org/apache/pinot/segment/local/recordtransformer/CompositeTransformer.java
Show resolved
Hide resolved
pinot-spi/src/main/java/org/apache/pinot/spi/recordtransformer/enricher/RecordEnricher.java
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.
LGTM !
@@ -141,6 +141,7 @@ private void resetBuffer() | |||
@Override | |||
public void collect(GenericRow row) | |||
throws IOException { | |||
// TODO: Revisit whether we should transform the row |
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.
Can you explain what the TODO means?
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.
In flush()
we will use the collected row to create a segment, which applies the transforms again
Address #13049
Another attempt after #13086 and #13704
RecordEnricher
extendRecordTransformer
RecordEnricherPipeline
intoCompositeTransformer
RecordTransformer.getInputColumns()
to return the required input columns, and simplifyIngestionUtils.getFieldsForRecordExtractor()
Incompatible
RecordTransformer
is moved topinot-spi
module:org.apache.pinot.spi.recordtransformer
RecordEnricher
is moved fromorg.apache.pinot.spi.recordenricher
toorg.apache.pinot.spi.recordtransformer.enricher