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

Expose msg length info to metadata #14688

Merged
merged 2 commits into from
Jan 2, 2025

Conversation

lnbest0707-uber
Copy link
Contributor

feature

Stream message length is an important metadata information as its timestamp. Expose this info to metadata to make it easier extracted through transform functions.

@codecov-commenter
Copy link

codecov-commenter commented Dec 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.00%. Comparing base (59551e4) to head (31b9afd).
Report is 1491 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #14688      +/-   ##
============================================
+ Coverage     61.75%   64.00%   +2.25%     
- Complexity      207     1608    +1401     
============================================
  Files          2436     2706     +270     
  Lines        133233   149161   +15928     
  Branches      20636    22861    +2225     
============================================
+ Hits          82274    95472   +13198     
- Misses        44911    46689    +1778     
- Partials       6048     7000     +952     
Flag Coverage Δ
custom-integration1 100.00% <ø> (+99.99%) ⬆️
integration 100.00% <ø> (+99.99%) ⬆️
integration1 100.00% <ø> (+99.99%) ⬆️
integration2 0.00% <ø> (ø)
java-11 63.98% <100.00%> (+2.27%) ⬆️
java-21 63.90% <100.00%> (+2.27%) ⬆️
skip-bytebuffers-false 64.00% <100.00%> (+2.25%) ⬆️
skip-bytebuffers-true 63.88% <100.00%> (+36.15%) ⬆️
temurin 64.00% <100.00%> (+2.25%) ⬆️
unittests 64.00% <100.00%> (+2.25%) ⬆️
unittests1 56.31% <100.00%> (+9.42%) ⬆️
unittests2 34.45% <0.00%> (+6.72%) ⬆️

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.

Copy link
Contributor

@Jackie-Jiang Jackie-Jiang left a comment

Choose a reason for hiding this comment

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

Minor comment

@@ -30,6 +30,7 @@ public class StreamDataDecoderImpl implements StreamDataDecoder {
public static final String KEY = "__key";
public static final String HEADER_KEY_PREFIX = "__header$";
public static final String METADATA_KEY_PREFIX = "__metadata$";
public static final String RECORD_SERIALIZED_VALUE_SIZE_KEY = "recordSerializedValueSize";
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggest naming it METADATA_KEY_PREFIX + "streamMessageSize" to be more specific. We can have it with prefix to avoid always concating them

@deemoliu deemoliu merged commit f8fa1a8 into apache:master Jan 2, 2025
21 checks passed
@lnbest0707-uber lnbest0707-uber deleted the upstream_fork_kafka_size branch January 2, 2025 18:48
zeronerdzerogeekzerocool pushed a commit to zeronerdzerogeekzerocool/pinot that referenced this pull request Feb 20, 2025
* Expose msg length info to metadata

* Address comment
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.

5 participants