From cb718ca45ea8955e9b60a85163f2b301365815f9 Mon Sep 17 00:00:00 2001 From: "sammy.huang" Date: Mon, 18 Mar 2024 18:55:11 +0800 Subject: [PATCH] enhance: fetch simdjson directly in the format of targz (#31369) Signed-off-by: Liang Huang --- internal/core/thirdparty/simdjson/CMakeLists.txt | 6 +++--- internal/querynodev2/segments/result_test.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/core/thirdparty/simdjson/CMakeLists.txt b/internal/core/thirdparty/simdjson/CMakeLists.txt index 845733762f2f4..1000c2b3ccbce 100644 --- a/internal/core/thirdparty/simdjson/CMakeLists.txt +++ b/internal/core/thirdparty/simdjson/CMakeLists.txt @@ -13,7 +13,7 @@ FetchContent_Declare( simdjson - GIT_REPOSITORY https://github.com/simdjson/simdjson.git - GIT_TAG v3.1.7 + URL https://github.com/simdjson/simdjson/archive/refs/tags/v3.1.7.tar.gz + URL_HASH MD5=1b0d75ad32179c77f84f4a09d4214057 ) -FetchContent_MakeAvailable(simdjson) \ No newline at end of file +FetchContent_MakeAvailable(simdjson) diff --git a/internal/querynodev2/segments/result_test.go b/internal/querynodev2/segments/result_test.go index 39eef20e2d94d..f51c55ad6b73d 100644 --- a/internal/querynodev2/segments/result_test.go +++ b/internal/querynodev2/segments/result_test.go @@ -538,7 +538,7 @@ func (suite *ResultSuite) TestResult_MergeStopForBestResult() { suite.Run("merge stop one limited", func() { result1.HasMoreResult = true result2.HasMoreResult = false - result, err := MergeSegcoreRetrieveResultsV1(context.Background(), []*segcorepb.RetrieveResults{result1, result2}, + result, err := MergeSegcoreRetrieveResults(context.Background(), []*segcorepb.RetrieveResults{result1, result2}, NewMergeParam(typeutil.Unlimited, make([]int64, 0), nil, true)) suite.NoError(err) suite.Equal(2, len(result.GetFieldsData()))