Skip to content
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 record reader config/context param to record transformer #12520

Merged
merged 2 commits into from
Feb 29, 2024

Conversation

swaminathanmanish
Copy link
Contributor

Whats in the PR:
Adding Record reader config/context to transform api, for transformer to use it during transformation of record.
Why its needed:
Custom transformers need to be perform transformations based on record reader configs (eg: file path). This change is to enable such transformations.

@swaminathanmanish
Copy link
Contributor Author

@snleee , @klsince - Based on our discussion, please take a look.

@codecov-commenter
Copy link

codecov-commenter commented Feb 29, 2024

Codecov Report

Attention: Patch coverage is 85.71429% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 61.70%. Comparing base (59551e4) to head (f756923).
Report is 32 commits behind head on master.

Files Patch % Lines
.../core/segment/processing/mapper/SegmentMapper.java 75.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #12520      +/-   ##
============================================
- Coverage     61.75%   61.70%   -0.05%     
  Complexity      207      207              
============================================
  Files          2436     2450      +14     
  Lines        133233   133552     +319     
  Branches      20636    20692      +56     
============================================
+ Hits          82274    82406     +132     
- Misses        44911    45055     +144     
- Partials       6048     6091      +43     
Flag Coverage Δ
custom-integration1 <0.01% <0.00%> (-0.01%) ⬇️
integration <0.01% <0.00%> (-0.01%) ⬇️
integration1 <0.01% <0.00%> (-0.01%) ⬇️
integration2 0.00% <0.00%> (ø)
java-11 61.66% <85.71%> (-0.05%) ⬇️
java-21 61.58% <85.71%> (-0.05%) ⬇️
skip-bytebuffers-false 61.69% <85.71%> (-0.06%) ⬇️
skip-bytebuffers-true 61.56% <85.71%> (+33.83%) ⬆️
temurin 61.70% <85.71%> (-0.05%) ⬇️
unittests 61.69% <85.71%> (-0.05%) ⬇️
unittests1 46.88% <42.85%> (-0.01%) ⬇️
unittests2 27.67% <42.85%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@swaminathanmanish swaminathanmanish changed the title (WIP...) Adding record reader config/context param to record transformer Adding record reader config/context param to record transformer Feb 29, 2024
@swaminathanmanish swaminathanmanish marked this pull request as ready for review February 29, 2024 17:09
Copy link
Contributor

@snleee snleee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@klsince klsince merged commit f0fcbd8 into apache:master Feb 29, 2024
19 checks passed
klsince added a commit to klsince/pinot that referenced this pull request Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants