Skip to content

Commit

Permalink
fix conflict
Browse files Browse the repository at this point in the history
Signed-off-by: gengliqi <[email protected]>
  • Loading branch information
gengliqi committed Jan 24, 2024
1 parent 0ddc4a7 commit 566f982
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 112 deletions.
2 changes: 1 addition & 1 deletion contrib/client-c
Submodule client-c updated 51 files
+3 −0 .gitmodules
+33 −0 README.md
+2 −2 ci/Dockerfile
+9 −6 cmake/Modules/FindgRPC.cmake
+2 −0 format.sh
+16 −1 include/pingcap/Config.h
+4 −1 include/pingcap/Exception.h
+43 −0 include/pingcap/common/FixedThreadPool.h
+147 −0 include/pingcap/common/MPMCQueue.h
+96 −0 include/pingcap/common/MPPProber.h
+152 −45 include/pingcap/coprocessor/Client.h
+1 −1 include/pingcap/kv/2pc.h
+1 −0 include/pingcap/kv/Backoff.h
+26 −5 include/pingcap/kv/Cluster.h
+1 −1 include/pingcap/kv/LockResolver.h
+40 −5 include/pingcap/kv/RegionCache.h
+126 −19 include/pingcap/kv/RegionClient.h
+43 −67 include/pingcap/kv/Rpc.h
+4 −0 include/pingcap/kv/Snapshot.h
+147 −33 include/pingcap/kv/internal/type_traits.h
+33 −8 include/pingcap/pd/Client.h
+9 −6 include/pingcap/pd/CodecClient.h
+39 −9 include/pingcap/pd/IClient.h
+43 −3 include/pingcap/pd/MockPDClient.h
+2 −0 src/CMakeLists.txt
+61 −0 src/common/FixedThreadPool.cc
+142 −0 src/common/MPPProber.cc
+572 −48 src/coprocessor/Client.cc
+37 −37 src/kv/2pc.cc
+2 −0 src/kv/Backoff.cc
+16 −7 src/kv/Cluster.cc
+45 −55 src/kv/LockResolver.cc
+128 −15 src/kv/RegionCache.cc
+14 −14 src/kv/Scanner.cc
+54 −10 src/kv/Snapshot.cc
+196 −35 src/pd/Client.cc
+7 −1 src/test/CMakeLists.txt
+2 −0 src/test/bank_test/bank_test_schrodinger.cc
+2 −2 src/test/bank_test/bank_test_ut.cc
+303 −0 src/test/batch_coprocessor_test.cc
+80 −20 src/test/coprocessor_test.cc
+8 −8 src/test/io_or_region_error_get_test.cc
+2 −2 src/test/lock_resolve_test.cc
+1 −1 src/test/mock_tikv.h
+1 −1 src/test/real_tikv_test/2pc_test.cc
+2 −2 src/test/region_split_test.cc
+88 −3 src/test/test_helper.h
+5 −0 third_party/CMakeLists.txt
+1 −0 third_party/abseil-cpp
+25 −0 third_party/abseil-cpp-cmake/CMakeLists.txt
+1 −1 third_party/kvproto
2 changes: 1 addition & 1 deletion contrib/fmtlib
Submodule fmtlib updated 86 files
+8 −0 .github/dependabot.yml
+6 −0 .github/issue_template.md
+3 −2 .github/pull_request_template.md
+30 −0 .github/workflows/cifuzz.yml
+12 −1 .github/workflows/doc.yml
+42 −10 .github/workflows/linux.yml
+20 −2 .github/workflows/macos.yml
+65 −0 .github/workflows/scorecard.yml
+61 −21 .github/workflows/windows.yml
+99 −70 CMakeLists.txt
+1,187 −3 ChangeLog.rst
+1 −1 LICENSE.rst
+55 −38 README.rst
+11 −2 doc/CMakeLists.txt
+270 −155 doc/api.rst
+9 −6 doc/build.py
+2 −2 doc/index.rst
+163 −10 doc/syntax.rst
+5 −5 include/fmt/args.h
+482 −341 include/fmt/chrono.h
+116 −122 include/fmt/color.h
+62 −170 include/fmt/compile.h
+976 −1,290 include/fmt/core.h
+820 −1,801 include/fmt/format-inl.h
+2,253 −847 include/fmt/format.h
+0 −2 include/fmt/locale.h
+70 −146 include/fmt/os.h
+129 −55 include/fmt/ostream.h
+202 −192 include/fmt/printf.h
+367 −425 include/fmt/ranges.h
+465 −0 include/fmt/std.h
+86 −64 include/fmt/xchar.h
+40 −29 src/fmt.cc
+15 −96 src/format.cc
+117 −80 src/os.cc
+3 −3 support/Vagrantfile
+0 −43 support/appveyor-build.py
+0 −31 support/appveyor.yml
+0 −1 support/bazel/.bazelrc
+1 −1 support/bazel/.bazelversion
+1 −2 support/bazel/BUILD.bazel
+5 −4 support/bazel/README.md
+1 −1 support/build.gradle
+0 −70 support/cmake/cxx14.cmake
+4 −1 support/cmake/fmt-config.cmake.in
+6 −0 support/manage.py
+1 −1 support/printable.py
+7 −0 support/rst2md.py
+30 −17 test/CMakeLists.txt
+1 −1 test/add-subdirectory-test/CMakeLists.txt
+1 −1 test/args-test.cc
+396 −18 test/chrono-test.cc
+6 −0 test/color-test.cc
+42 −4 test/compile-error-test/CMakeLists.txt
+2 −1 test/compile-fp-test.cc
+37 −39 test/compile-test.cc
+167 −232 test/core-test.cc
+18 −0 test/detect-stdfs.cc
+2 −0 test/enforce-checks-test.cc
+1 −1 test/find-package-test/CMakeLists.txt
+257 −151 test/format-impl-test.cc
+465 −388 test/format-test.cc
+1 −1 test/fuzzing/CMakeLists.txt
+2 −2 test/fuzzing/one-arg.cc
+2 −2 test/fuzzing/two-args.cc
+3 −1 test/gtest-extra-test.cc
+1 −1 test/gtest-extra.cc
+2 −7 test/gtest-extra.h
+1 −7 test/gtest/CMakeLists.txt
+2 −2 test/gtest/gmock-gtest-all.cc
+2 −2 test/mock-allocator.h
+36 −96 test/module-test.cc
+24 −69 test/os-test.cc
+69 −79 test/ostream-test.cc
+3 −90 test/posix-mock-test.cc
+0 −2 test/posix-mock.h
+14 −42 test/printf-test.cc
+198 −34 test/ranges-test.cc
+1 −1 test/scan-test.cc
+17 −14 test/scan.h
+1 −1 test/static-export-test/CMakeLists.txt
+257 −0 test/std-test.cc
+2 −3 test/test-main.cc
+4 −4 test/unicode-test.cc
+2 −6 test/util.h
+177 −95 test/xchar-test.cc
2 changes: 1 addition & 1 deletion contrib/kvproto
Submodule kvproto updated 62 files
+5 −1 .github/workflows/rust-test.yaml
+0 −1 .gitignore
+1,111 −0 Cargo.lock
+8 −3 Cargo.toml
+7 −0 Dockerfile
+4 −1 Makefile
+19 −6 go.mod
+57 −13 go.sum
+7 −1 include/eraftpb.proto
+1,414 −0 pkg/autoid/autoid.pb.go
+0 −8,140 pkg/backup/backup.pb.go
+4,734 −1,460 pkg/brpb/brpb.pb.go
+508 −100 pkg/cdcpb/cdcpb.pb.go
+20 −2 pkg/configpb/configpb.pb.gw.go
+1,687 −0 pkg/configpb/sediOSx9h
+1,305 −121 pkg/coprocessor/coprocessor.pb.go
+5,405 −2,841 pkg/debugpb/debugpb.pb.go
+6,304 −0 pkg/disaggregated/disaggregated.pb.go
+124 −83 pkg/eraftpb/eraftpb.pb.go
+1,034 −134 pkg/errorpb/errorpb.pb.go
+1,936 −226 pkg/import_sstpb/import_sstpb.pb.go
+1,390 −284 pkg/keyspacepb/keyspacepb.pb.go
+3,657 −614 pkg/kvrpcpb/kvrpcpb.pb.go
+750 −35 pkg/logbackuppb/logbackuppb.pb.go
+3,787 −0 pkg/meta_storagepb/meta_storagepb.pb.go
+102 −63 pkg/metapb/metapb.pb.go
+1,349 −247 pkg/mpp/mpp.pb.go
+18,804 −11,037 pkg/pdpb/pdpb.pb.go
+1,597 −311 pkg/raft_cmdpb/raft_cmdpb.pb.go
+6,658 −2,035 pkg/raft_serverpb/raft_serverpb.pb.go
+8,077 −0 pkg/resource_manager/resource_manager.pb.go
+5,904 −0 pkg/schedulingpb/schedulingpb.pb.go
+0 −1,655 pkg/span/span.pb.go
+562 −149 pkg/tikvpb/tikvpb.pb.go
+3,817 −0 pkg/tsopb/tsopb.pb.go
+47 −0 proto/autoid.proto
+145 −2 proto/brpb.proto
+19 −0 proto/cdcpb.proto
+27 −0 proto/coprocessor.proto
+69 −0 proto/debugpb.proto
+169 −0 proto/disaggregated.proto
+33 −0 proto/errorpb.proto
+65 −0 proto/import_sstpb.proto
+25 −0 proto/keyspacepb.proto
+194 −30 proto/kvrpcpb.proto
+15 −0 proto/logbackuppb.proto
+138 −0 proto/meta_storagepb.proto
+4 −1 proto/metapb.proto
+32 −4 proto/mpp.proto
+235 −4 proto/pdpb.proto
+48 −1 proto/raft_cmdpb.proto
+141 −1 proto/raft_serverpb.proto
+233 −0 proto/resource_manager.proto
+197 −0 proto/schedulingpb.proto
+20 −0 proto/tikvpb.proto
+126 −0 proto/tsopb.proto
+31 −1 scripts/check.sh
+3 −3 scripts/generate_go.sh
+20,755 −0 scripts/proto.lock
+21 −7 src/lib.rs
+10 −0 tools.go
+0 −17 tools.json
2 changes: 1 addition & 1 deletion contrib/tiflash-proxy
Submodule tiflash-proxy updated 1081 files
2 changes: 1 addition & 1 deletion contrib/tipb
67 changes: 0 additions & 67 deletions dbms/src/Functions/FunctionsString.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -580,18 +580,11 @@ TIFLASH_DECLARE_MULTITARGET_FUNCTION_TP(
to_case),
void,
lowerUpperUTF8ArrayImplTiDB,
<<<<<<< HEAD
(src, src_end, dst),
(ConstPtr<UInt8> & src,
const ConstPtr<UInt8> src_end,
Ptr<UInt8> & dst),
=======
(src_data, src_offsets, dst_data, dst_offsets),
(const ColumnString::Chars_t & src_data,
const IColumn::Offsets & src_offsets,
ColumnString::Chars_t & dst_data,
IColumn::Offsets & dst_offsets),
>>>>>>> 1305baefd6 (lowerUTF8/upperUTF8 allow lower/uppercase characters occupy different number of bytes (#8622))
{
dst_data.reserve(src_data.size());
dst_offsets.assign(src_offsets);
Expand Down Expand Up @@ -679,16 +672,6 @@ TIFLASH_DECLARE_MULTITARGET_FUNCTION_TP(
dst_offsets[i] = src_offsets[i] + diff;
}
}
<<<<<<< HEAD
while (src < src_end)
toCaseImplTiDB<
not_case_lower_bound,
not_case_upper_bound,
ascii_upper_bound,
flip_case_mask,
to_case>(src, src_end, dst);
=======
>>>>>>> 1305baefd6 (lowerUTF8/upperUTF8 allow lower/uppercase characters occupy different number of bytes (#8622))
})
} // namespace

Expand Down Expand Up @@ -734,57 +717,7 @@ void TiDBLowerUpperUTF8Impl<not_case_lower_bound, not_case_upper_bound, to_case>
size_t /*n*/,
ColumnString::Chars_t & /*res_data*/)
{
<<<<<<< HEAD
res_data.resize(data.size());
array(data.data(), data.data() + data.size(), res_data.data());
}

template <char not_case_lower_bound,
char not_case_upper_bound,
int to_case(int)>
void TiDBLowerUpperUTF8Impl<not_case_lower_bound, not_case_upper_bound, to_case>::constant(
const std::string & data,
std::string & res_data)
{
res_data.resize(data.size());
array(reinterpret_cast<const UInt8 *>(data.data()),
reinterpret_cast<const UInt8 *>(data.data() + data.size()),
reinterpret_cast<UInt8 *>(&res_data[0]));
}

template <char not_case_lower_bound,
char not_case_upper_bound,
int to_case(int)>
void TiDBLowerUpperUTF8Impl<not_case_lower_bound, not_case_upper_bound, to_case>::toCase(
const UInt8 *& src,
const UInt8 * src_end,
UInt8 *& dst)
{
toCaseImplTiDB<
not_case_lower_bound,
not_case_upper_bound,
ascii_upper_bound,
flip_case_mask,
to_case>(src, src_end, dst);
}

template <char not_case_lower_bound,
char not_case_upper_bound,
int to_case(int)>
void TiDBLowerUpperUTF8Impl<not_case_lower_bound, not_case_upper_bound, to_case>::array(
const UInt8 * src,
const UInt8 * src_end,
UInt8 * dst)
{
lowerUpperUTF8ArrayImplTiDB<
not_case_lower_bound,
not_case_upper_bound,
ascii_upper_bound,
flip_case_mask,
to_case>(src, src_end, dst);
=======
throw Exception("Cannot apply function TiDBLowerUpperUTF8 to fixed string.", ErrorCodes::ILLEGAL_COLUMN);
>>>>>>> 1305baefd6 (lowerUTF8/upperUTF8 allow lower/uppercase characters occupy different number of bytes (#8622))
}

/** If the string is encoded in UTF-8, then it selects a substring of code points in it.
Expand Down
6 changes: 0 additions & 6 deletions dbms/src/Functions/tests/gtest_strings_lower.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ class StringLower : public DB::tests::FunctionTest

TEST_F(StringLower, lowerAll)
{
<<<<<<< HEAD
std::vector<std::optional<String>> candidate_strings = {"one WEEK’S time TEST", "abc测试def", "ABCテストabc", "ЀЁЂѓЄЅІїЈЉЊЋЌѝЎЏ", "+Ѐ-ё*Ђ/ѓ!Є@Ѕ#І$@Ї%Ј……љ&Њ(Ћ)Ќ¥Ѝ#Ў@Џ!^", "ΑΒΓΔΕΖΗΘικΛΜΝΞΟΠΡΣτΥΦΧΨωΣ", "▲Α▼Βγ➨ΔΕ☎ΖΗ✂ΘΙ€ΚΛ♫ΜΝ✓ΞΟ✚ΠΡ℉ΣΤ♥ΥΦ♖ΧΨ♘Ω★Σ✕", "թՓՁՋՐՉՃԺԾՔՈԵՌՏԸՒԻՕՊԱՍԴՖԳՀՅԿԼԽԶՂՑՎԲՆմՇ"};
std::vector<std::optional<String>> lower_case_strings = {"one week’s time test", "abc测试def", "abcテストabc", "ѐёђѓєѕіїјљњћќѝўџ", "+ѐ-ё*ђ/ѓ!є@ѕ#і$@ї%ј……љ&њ(ћ)ќ¥ѝ#ў@џ!^", "αβγδεζηθικλμνξοπρστυφχψωσ", "▲α▼βγ➨δε☎ζη✂θι€κλ♫μν✓ξο✚πρ℉στ♥υφ♖χψ♘ω★σ✕", "թփձջրչճժծքոեռտըւիօպասդֆգհյկլխզղցվբնմշ"};
=======
std::vector<std::optional<String>> candidate_strings
= {"one WEEK'S time TEST",
"abc测试def",
Expand Down Expand Up @@ -96,8 +92,6 @@ TEST_F(StringLower, lowerAll)
"ɱɑⱥωabcdefghijklmnopɥaⱦ",
"test_wrong_utf8_2\xf1\x22",
"թփձջրչճժծքոեռտըւիօպասդֆգհյկլխզղցվբնմշ"};
>>>>>>> 1305baefd6 (lowerUTF8/upperUTF8 allow lower/uppercase characters occupy different number of bytes (#8622))


ASSERT_COLUMN_EQ(
toNullableVec(lower_case_strings),
Expand Down
32 changes: 0 additions & 32 deletions dbms/src/Functions/tests/gtest_strings_upper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ class StringUpper : public DB::tests::FunctionTest
return createColumn<Nullable<String>>(v);
}

<<<<<<< HEAD
static ColumnWithTypeAndName toVec(const std::vector<String> & v)
{
return createColumn<String>(v);
=======
static ColumnWithTypeAndName toVec(const std::vector<std::optional<String>> & v)
{
std::vector<String> strings;
Expand All @@ -58,7 +53,6 @@ class StringUpper : public DB::tests::FunctionTest
}

return createColumn<String>(strings);
>>>>>>> 1305baefd6 (lowerUTF8/upperUTF8 allow lower/uppercase characters occupy different number of bytes (#8622))
}

static ColumnWithTypeAndName toConst(const String & s)
Expand All @@ -69,31 +63,6 @@ class StringUpper : public DB::tests::FunctionTest

TEST_F(StringUpper, upperAll)
{
<<<<<<< HEAD
ASSERT_COLUMN_EQ(
toNullableVec({"ONE WEEK’S TIME TEST", "ABC测试DEF", "ABCテストABC", "ЀЁЂЃЄЅІЇЈЉЊЋЌЍЎЏ", "+Ѐ-Ё*Ђ/Ѓ!Є@Ѕ#І$@Ї%Ј……Љ&Њ(Ћ)Ќ¥Ѝ#Ў@Џ!^", "ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩΣ", "▲Α▼ΒΓ➨ΔΕ☎ΖΗ✂ΘΙ€ΚΛ♫ΜΝ✓ΞΟ✚ΠΡ℉ΣΤ♥ΥΦ♖ΧΨ♘Ω★Σ✕", "ԹՓՁՋՐՉՃԺԾՔՈԵՌՏԸՒԻՕՊԱՍԴՖԳՀՅԿԼԽԶՂՑՎԲՆՄՇ"}),
executeFunction(
"upperUTF8",
toNullableVec({"one week’s time TEST", "abc测试DeF", "AbCテストAbC", "ѐёђѓєѕіїјЉЊЋЌЍЎЏ", "+ѐ-ё*ђ/ѓ!є@ѕ#і$@ї%ј……Љ&Њ(Ћ)Ќ¥Ѝ#Ў@Џ!^", "αβγδεζηθικλμνξοπρστυφχψως", "▲α▼βγ➨δε☎ζη✂θι€κλ♫μν✓ξο✚πρ℉στ♥υφ♖χψ♘ω★ς✕", "թփձջրչճժծքոեռտըւիօպասդֆգհյկլխզղցվբնմշ"})));

ASSERT_COLUMN_EQ(
toVec({"ONE WEEK’S TIME TEST", "ABC测试DEF", "ABCテストABC", "ЀЁЂЃЄЅІЇЈЉЊЋЌЍЎЏ", "+Ѐ-Ё*Ђ/Ѓ!Є@Ѕ#І$@Ї%Ј……Љ&Њ(Ћ)Ќ¥Ѝ#Ў@Џ!^", "ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩΣ", "▲Α▼ΒΓ➨ΔΕ☎ΖΗ✂ΘΙ€ΚΛ♫ΜΝ✓ΞΟ✚ΠΡ℉ΣΤ♥ΥΦ♖ΧΨ♘Ω★Σ✕", "ԹՓՁՋՐՉՃԺԾՔՈԵՌՏԸՒԻՕՊԱՍԴՖԳՀՅԿԼԽԶՂՑՎԲՆՄՇ"}),
executeFunction(
"upperUTF8",
toVec({"one week’s time TEST", "abc测试DeF", "AbCテストAbC", "ѐёђѓєѕіїјЉЊЋЌЍЎЏ", "+ѐ-ё*ђ/ѓ!є@ѕ#і$@ї%ј……Љ&Њ(Ћ)Ќ¥Ѝ#Ў@Џ!^", "αβγδεζηθικλμνξοπρστυφχψως", "▲α▼βγ➨δε☎ζη✂θι€κλ♫μν✓ξο✚πρ℉στ♥υφ♖χψ♘ω★ς✕", "թփձջրչճժծքոեռտըւիօպասդֆգհյկլխզղցվբնմշ"})));

ASSERT_COLUMN_EQ(
toNullableVec({"one week’s time TEST", "abc测试DeF", "AbCテストAbC", "ѐёђѓєѕіїјЉЊЋЌЍЎЏ", "αβγδεζηθικλμνξοπρστυφχψως", "թփձջրչճժծքոեռտըւիօպասդֆգհյկլխզղցվբնմշ"}),
executeFunction(
"upperBinary",
toNullableVec({"one week’s time TEST", "abc测试DeF", "AbCテストAbC", "ѐёђѓєѕіїјЉЊЋЌЍЎЏ", "αβγδεζηθικλμνξοπρστυφχψως", "թփձջրչճժծքոեռտըւիօպասդֆգհյկլխզղցվբնմշ"})));

ASSERT_COLUMN_EQ(
toVec({"one week’s time TEST", "abc测试DeF", "AbCテストAbC", "ѐёђѓєѕіїјЉЊЋЌЍЎЏ", "αβγδεζηθικλμνξοπρστυφχψως", "թփձջրչճժծքոեռտըւիօպասդֆգհյկլխզղցվբնմշ"}),
executeFunction(
"upperBinary",
toVec({"one week’s time TEST", "abc测试DeF", "AbCテストAbC", "ѐёђѓєѕіїјЉЊЋЌЍЎЏ", "αβγδεζηθικλμνξοπρστυφχψως", "թփձջրչճժծքոեռտըւիօպասդֆգհյկլխզղցվբնմշ"})));
=======
std::vector<std::optional<String>> candidate_strings
= {"one week's time TEST",
"abc测试DeF",
Expand Down Expand Up @@ -131,7 +100,6 @@ TEST_F(StringUpper, upperAll)
executeFunction("upperBinary", toNullableVec(candidate_strings)));

ASSERT_COLUMN_EQ(toVec(candidate_strings), executeFunction("upperBinary", toVec(candidate_strings)));
>>>>>>> 1305baefd6 (lowerUTF8/upperUTF8 allow lower/uppercase characters occupy different number of bytes (#8622))

ASSERT_COLUMN_EQ(
toConst("ONE WEEK’S TIME TEST"),
Expand Down

0 comments on commit 566f982

Please sign in to comment.