Skip to content

Conversation

@zhengbuqian
Copy link
Collaborator

issue: #44452
pr: #46847

- JsonFlatIndex: reuse scratch buffer for nested JSON serialization
- ChunkWriter: cache parsed Json objects to avoid double parsing
- StringChunkWriter: reuse string_view vector across writes

Signed-off-by: Buqian Zheng <[email protected]>
- json_stats/utils: CreateArrowBuilders, CreateArrowSchema, CreateParquetKVMetadata
- FunctionFactory: RegisterFilterFunction
- IndexMeta: loop variables in ToString and constructor

Signed-off-by: Buqian Zheng <[email protected]>
- Add reserve() calls before vector population loops
- Use std::move() for rvalue parameters and return values
- Move buffer allocations outside hot loops (SubSearchResult)

Affected files: FieldData, ArrayOffsets, Schema, Slice, IndexStats,
JsonContainsExpr, RescoresNode, PlanProto, SubSearchResult,
bson_inverted, parquet_writer, segment_c

Signed-off-by: Buqian Zheng <[email protected]>
- ReduceUtils: assign directly to protobuf field without temporary variable
- RemoteInputStream: move fsync() outside loop for better I/O efficiency

Signed-off-by: Buqian Zheng <[email protected]>
- Call FillFieldData(arrow::StringArray) directly in FieldData.cpp
- Fix null handling in FillFieldData by using GetView() instead of iterator

Signed-off-by: Buqian Zheng <[email protected]>
Replace dynamic allocation (new uint8_t[]) with stack-allocated arrays
to prevent memory leaks when test assertions fail before delete[].

Signed-off-by: Buqian Zheng <[email protected]>
Signed-off-by: Buqian Zheng <[email protected]>
@zhengbuqian zhengbuqian added this to the 2.6.9 milestone Jan 15, 2026
@gemini-code-assist
Copy link

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@sre-ci-robot sre-ci-robot added the size/L Denotes a PR that changes 100-499 lines. label Jan 15, 2026
@sre-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: zhengbuqian

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mergify mergify bot added dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement labels Jan 15, 2026
@sre-ci-robot
Copy link
Contributor

[ci-v2-notice]
Notice: New ci-v2 system is enabled for this PR.

To rerun ci-v2 checks, comment with:

  • /ci-rerun-code-check // for ci-v2/code-check
  • /ci-rerun-build // for ci-v2/build
  • /ci-rerun-ut-integration // for ci-v2/ut-integration, will rerun ci-v2/build
  • /ci-rerun-ut-go // for ci-v2/ut-go, will rerun ci-v2/build
  • /ci-rerun-ut-cpp // for ci-v2/ut-cpp
  • /ci-rerun-ut // for all ci-v2/ut-integration, ci-v2/ut-go, ci-v2/ut-cpp, will rerun ci-v2/build
  • /ci-rerun-e2e-arm // for ci-v2/e2e-arm
  • /ci-rerun-e2e-default // for ci-v2/e2e-default

If you have any questions or requests, please contact @zhikunyao.

@sre-ci-robot sre-ci-robot added the do-not-merge/need-merge-master-first any pr merge to release branch need to merge master first label Jan 15, 2026
@sre-ci-robot
Copy link
Contributor

[INFO] PR Label Summary by Default
[FAILED] PR #46847 not merged

Use /refresh-label to update related check and label manually

@mergify
Copy link
Contributor

mergify bot commented Jan 15, 2026

@zhengbuqian go-sdk check failed, comment rerun go-sdk can trigger the job again.

@codecov
Copy link

codecov bot commented Jan 15, 2026

Codecov Report

❌ Patch coverage is 78.37838% with 24 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.76%. Comparing base (fc4f840) to head (1463f33).
⚠️ Report is 58 commits behind head on 2.6.

Files with missing lines Patch % Lines
internal/core/src/index/JsonFlatIndex.cpp 8.33% 11 Missing ⚠️
internal/core/src/common/FieldData.cpp 37.50% 5 Missing ⚠️
internal/core/src/common/IndexMeta.cpp 60.00% 2 Missing ⚠️
internal/core/src/common/Schema.cpp 60.00% 2 Missing ⚠️
...rnal/core/src/exec/expression/JsonContainsExpr.cpp 60.00% 2 Missing ⚠️
internal/core/src/segcore/ReduceUtils.cpp 75.00% 1 Missing ⚠️
internal/core/src/segcore/segment_c.cpp 0.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##              2.6   #47088       +/-   ##
===========================================
+ Coverage   42.57%   76.76%   +34.19%     
===========================================
  Files          12     1910     +1898     
  Lines        1893   298852   +296959     
===========================================
+ Hits          806   229427   +228621     
- Misses       1035    62022    +60987     
- Partials       52     7403     +7351     
Components Coverage Δ
Client 78.17% <ø> (∅)
Core 82.72% <78.37%> (∅)
Go 75.54% <ø> (∅)
Files with missing lines Coverage Δ
internal/core/src/common/ChunkWriter.cpp 98.09% <100.00%> (ø)
internal/core/src/common/ChunkWriter.h 100.00% <ø> (ø)
internal/core/src/common/FieldDataInterface.h 62.83% <100.00%> (ø)
internal/core/src/common/Slice.cpp 27.41% <100.00%> (ø)
...e/src/exec/expression/function/FunctionFactory.cpp 100.00% <ø> (ø)
...ore/src/exec/expression/function/FunctionFactory.h 93.33% <ø> (ø)
internal/core/src/exec/operator/RescoresNode.cpp 67.34% <100.00%> (ø)
internal/core/src/index/IndexStats.cpp 75.00% <100.00%> (ø)
...ternal/core/src/index/json_stats/bson_inverted.cpp 98.33% <100.00%> (ø)
...ernal/core/src/index/json_stats/parquet_writer.cpp 75.17% <100.00%> (ø)
... and 13 more

... and 1875 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mergify mergify bot added the ci-passed label Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved ci-passed dco-passed DCO check passed. do-not-merge/need-merge-master-first any pr merge to release branch need to merge master first kind/enhancement Issues or changes related to enhancement size/L Denotes a PR that changes 100-499 lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants