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

fix: estimate jsonb's value encoding size #13643

Merged
merged 1 commit into from
Nov 24, 2023

Conversation

wangrunji0408
Copy link
Contributor

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.

What's changed and what's your intention?

resolve #8915

With #11805, we can get accurate jsonb value size now. This PR fixes the estimated jsonb value encoding size. But notice that it is not exact, because the value encoding is the json string, not the internal jsonbb encoding.

Checklist

  • I have written necessary rustdoc comments
  • I have added necessary unit tests and integration tests
  • I have added test labels as necessary. See details.
  • I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features Sqlsmith: Sql feature generation #7934).
  • My PR contains breaking changes. (If it deprecates some features, please create a tracking issue to remove them in the future).
  • All checks passed in ./risedev check (or alias, ./risedev c)
  • My PR changes performance-critical code. (Please run macro/micro-benchmarks and show the results.)
  • My PR contains critical fixes that are necessary to be merged into the latest release. (Please check out the details)

Documentation

  • My PR needs documentation updates. (Please use the Release note section below to summarize the impact on users)

@github-actions github-actions bot added the type/fix Bug fix label Nov 24, 2023
Copy link

codecov bot commented Nov 24, 2023

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (28d4fce) 68.20% compared to head (2537c51) 68.20%.
Report is 3 commits behind head on main.

Files Patch % Lines
src/common/src/types/jsonb.rs 0.00% 3 Missing ⚠️
src/common/src/util/value_encoding/mod.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main   #13643   +/-   ##
=======================================
  Coverage   68.20%   68.20%           
=======================================
  Files        1520     1520           
  Lines      261615   261617    +2     
=======================================
+ Hits       178429   178443   +14     
+ Misses      83186    83174   -12     
Flag Coverage Δ
rust 68.20% <0.00%> (+<0.01%) ⬆️

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.

@wangrunji0408 wangrunji0408 added this pull request to the merge queue Nov 24, 2023
Merged via the queue into main with commit 3ccb249 Nov 24, 2023
8 of 9 checks passed
@wangrunji0408 wangrunji0408 deleted the wrj/jsonb-value-encoding-size branch November 24, 2023 10:17
Little-Wallace added a commit that referenced this pull request Nov 27, 2023
commit a3ea7c0
Author: Eric Fu <[email protected]>
Date:   Sat Nov 25 11:00:48 2023 +0800

    refactor: memory management (#13636)

commit 2348a2b
Author: Bugen Zhao <[email protected]>
Date:   Fri Nov 24 18:26:48 2023 +0800

    fix(streaming): use correct label for `stream_fragment_exchange_bytes` metrics (#13644)

    Signed-off-by: Bugen Zhao <[email protected]>

commit 3ccb249
Author: Runji Wang <[email protected]>
Date:   Fri Nov 24 17:39:12 2023 +0800

    fix: estimate jsonb's value encoding size (#13643)

    Signed-off-by: Runji Wang <[email protected]>

commit 7b21e04
Author: Dylan <[email protected]>
Date:   Fri Nov 24 16:54:38 2023 +0800

    feat(optimizer): improve inline session timezone in exprs (#13640)

Signed-off-by: Little-Wallace <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/fix Bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

perf(encoding): estimate jsonb's value encoding size
2 participants