This is an automated email from the ASF dual-hosted git repository.
zclll pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new d48f8797116 [env](check)Avoid compilation checks on some files.
(#55515)
d48f8797116 is described below
commit d48f8797116bceea343171c36450a999b48bee13
Author: Mryange <[email protected]>
AuthorDate: Tue Sep 2 12:27:59 2025 +0800
[env](check)Avoid compilation checks on some files. (#55515)
---
be/src/common/be_mock_util.cpp | 6 ++++--
be/src/olap/rowset/segment_v2/segment_iterator.cpp | 4 +++-
be/src/util/simd/bits.h | 3 ++-
be/src/util/slice.h | 5 +++--
be/src/util/string_parser.cpp | 4 +++-
be/src/util/string_parser.hpp | 3 ++-
be/src/vec/functions/cast/cast_to_string.h | 7 ++++---
7 files changed, 21 insertions(+), 11 deletions(-)
diff --git a/be/src/common/be_mock_util.cpp b/be/src/common/be_mock_util.cpp
index 4f3ef15b1ae..c338e753318 100644
--- a/be/src/common/be_mock_util.cpp
+++ b/be/src/common/be_mock_util.cpp
@@ -23,13 +23,15 @@
#include <vector>
namespace doris {
+#include "common/compile_check_begin.h"
void mock_random_sleep() {
std::vector<int> sleepDurations = {0, 0, 0, 0, 50};
std::random_device rd;
std::mt19937 gen(rd());
- std::uniform_int_distribution<> dis(0, sleepDurations.size() - 1);
+ std::uniform_int_distribution<> dis(0, (int)sleepDurations.size() - 1);
int sleepTime = sleepDurations[dis(gen)];
std::this_thread::sleep_for(std::chrono::milliseconds(sleepTime));
}
-} // namespace doris
\ No newline at end of file
+} // namespace doris
+#include "common/compile_check_end.h"
\ No newline at end of file
diff --git a/be/src/olap/rowset/segment_v2/segment_iterator.cpp
b/be/src/olap/rowset/segment_v2/segment_iterator.cpp
index ea394c0950d..350425b0418 100644
--- a/be/src/olap/rowset/segment_v2/segment_iterator.cpp
+++ b/be/src/olap/rowset/segment_v2/segment_iterator.cpp
@@ -2152,7 +2152,9 @@ uint16_t
SegmentIterator::_evaluate_vectorization_predicate(uint16_t* sel_rowid_
}
} else {
simd::iterate_through_bits_mask(
- [&](const uint16_t bit_pos) { sel_rowid_idx[new_size++] =
sel_pos + bit_pos; },
+ [&](const int bit_pos) {
+ sel_rowid_idx[new_size++] = sel_pos +
(uint16_t)bit_pos;
+ },
mask);
}
sel_pos += SIMD_BYTES;
diff --git a/be/src/util/simd/bits.h b/be/src/util/simd/bits.h
index ad4f4ef1f9a..6c0d456254b 100644
--- a/be/src/util/simd/bits.h
+++ b/be/src/util/simd/bits.h
@@ -29,7 +29,7 @@
#include "util/sse_util.hpp"
namespace doris::simd {
-
+#include "common/compile_check_begin.h"
consteval auto bits_mask_length() {
#if defined(__ARM_NEON) && defined(__aarch64__)
return 16;
@@ -242,3 +242,4 @@ inline size_t find_zero(const std::vector<uint8_t>& vec,
size_t start) {
}
} // namespace doris::simd
+#include "common/compile_check_end.h"
\ No newline at end of file
diff --git a/be/src/util/slice.h b/be/src/util/slice.h
index 2b26e2b82ef..3aa9a062153 100644
--- a/be/src/util/slice.h
+++ b/be/src/util/slice.h
@@ -32,7 +32,7 @@
#include "vec/common/allocator_fwd.h"
namespace doris {
-
+#include "common/compile_check_begin.h"
class faststring;
/// @brief A wrapper around externally allocated data.
@@ -299,7 +299,7 @@ inline bool operator!=(const Slice& x, const Slice& y) {
}
inline int Slice::compare(const Slice& b) const {
- const int min_len = (size < b.size) ? size : b.size;
+ const auto min_len = (size < b.size) ? size : b.size;
int r = mem_compare(data, b.data, min_len);
if (r == 0) {
if (size < b.size)
@@ -376,3 +376,4 @@ private:
};
} // namespace doris
+#include "common/compile_check_end.h"
\ No newline at end of file
diff --git a/be/src/util/string_parser.cpp b/be/src/util/string_parser.cpp
index b0bb681c525..dcdbda71edc 100644
--- a/be/src/util/string_parser.cpp
+++ b/be/src/util/string_parser.cpp
@@ -21,6 +21,7 @@
#include "vec/core/extended_types.h"
namespace doris {
+#include "common/compile_check_avoid_begin.h"
// Supported decimal number format:
// <decimal> ::= <whitespace>* <value> <whitespace>*
//
@@ -235,4 +236,5 @@ template vectorized::Int128
StringParser::string_to_decimal<PrimitiveType::TYPE_
template wide::Int256
StringParser::string_to_decimal<PrimitiveType::TYPE_DECIMAL256>(
const char* __restrict s, size_t len, int type_precision, int
type_scale,
ParseResult* result);
-} // end namespace doris
\ No newline at end of file
+} // end namespace doris
+#include "common/compile_check_avoid_end.h"
\ No newline at end of file
diff --git a/be/src/util/string_parser.hpp b/be/src/util/string_parser.hpp
index 8fa11dda67b..dc2ba5a02e3 100644
--- a/be/src/util/string_parser.hpp
+++ b/be/src/util/string_parser.hpp
@@ -46,6 +46,7 @@
#include "vec/data_types/number_traits.h"
namespace doris {
+#include "common/compile_check_avoid_begin.h"
namespace vectorized {
template <DecimalNativeTypeConcept T>
struct Decimal;
@@ -798,5 +799,5 @@ inline bool StringParser::string_to_bool_internal(const
char* __restrict s, int
*result = PARSE_FAILURE;
return false;
}
-
+#include "common/compile_check_avoid_end.h"
} // end namespace doris
diff --git a/be/src/vec/functions/cast/cast_to_string.h
b/be/src/vec/functions/cast/cast_to_string.h
index 9e1bc5df0e3..c46d75ff559 100644
--- a/be/src/vec/functions/cast/cast_to_string.h
+++ b/be/src/vec/functions/cast/cast_to_string.h
@@ -23,7 +23,7 @@
#include "vec/core/types.h"
#include "vec/runtime/time_value.h"
namespace doris::vectorized {
-
+#include "common/compile_check_begin.h"
struct CastToString {
template <class SRC>
static inline std::string from_number(const SRC& from);
@@ -95,7 +95,7 @@ private:
}
}
*end = '\0';
- return end - buffer;
+ return int(end - buffer);
}
};
@@ -347,4 +347,5 @@ inline WrapperType create_string_wrapper(const DataTypePtr&
from_type) {
}
}; // namespace CastWrapper
-} // namespace doris::vectorized
\ No newline at end of file
+} // namespace doris::vectorized
+#include "common/compile_check_end.h"
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]