This is an automated email from the ASF dual-hosted git repository.
eldenmoon 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 89c751aab5e [chore](compile) add compile check for some files (#55629)
89c751aab5e is described below
commit 89c751aab5e737b5fd8b756ab292d9852eb59f15
Author: lihangyu <[email protected]>
AuthorDate: Wed Sep 3 21:24:18 2025 +0800
[chore](compile) add compile check for some files (#55629)
---
be/src/olap/rowset/segment_v2/column_reader_cache.cpp | 10 +++++++---
be/src/vec/json/simd_json_parser.h | 4 ++++
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/be/src/olap/rowset/segment_v2/column_reader_cache.cpp
b/be/src/olap/rowset/segment_v2/column_reader_cache.cpp
index 13d4a16ee29..3ebf8b86e25 100644
--- a/be/src/olap/rowset/segment_v2/column_reader_cache.cpp
+++ b/be/src/olap/rowset/segment_v2/column_reader_cache.cpp
@@ -27,6 +27,8 @@ bvar::Adder<int64_t>
g_segment_column_cache_evict_count("segment_column_cache_ev
namespace doris::segment_v2 {
+#include "common/compile_check_begin.h"
+
ColumnReaderCache::ColumnReaderCache(Segment* segment) : _segment(segment) {}
ColumnReaderCache::~ColumnReaderCache() {
@@ -120,7 +122,7 @@ Status ColumnReaderCache::get_column_reader(int32_t col_uid,
RETURN_IF_ERROR(_segment->_get_segment_footer(footer_pb_shared,
stats));
}
// lazy create column reader from footer
- const auto& col_footer_pb = footer_pb_shared->columns(it->second);
+ const auto& col_footer_pb =
footer_pb_shared->columns(static_cast<int>(it->second));
ColumnReaderOptions opts {
.kept_in_memory = _segment->tablet_schema()->is_in_memory(),
.be_exec_version = _be_exec_version,
@@ -129,8 +131,8 @@ Status ColumnReaderCache::get_column_reader(int32_t col_uid,
VLOG_DEBUG << "insert cache: " << col_uid << " "
<< ""
<< ", type: " << (int)col_footer_pb.type() << ",
footer_ordinal: " << it->second;
- return _insert({col_uid, {}}, opts, *footer_pb_shared, it->second,
_segment->_file_reader,
- _segment->num_rows(), column_reader);
+ return _insert({col_uid, {}}, opts, *footer_pb_shared,
static_cast<int>(it->second),
+ _segment->_file_reader, _segment->num_rows(),
column_reader);
}
Status ColumnReaderCache::get_path_column_reader(uint32_t col_uid,
@@ -181,4 +183,6 @@ Status ColumnReaderCache::get_path_column_reader(uint32_t
col_uid,
return Status::NotFound("column not found in segment, col_uid={}",
col_uid);
}
+#include "common/compile_check_end.h"
+
} // namespace doris::segment_v2
\ No newline at end of file
diff --git a/be/src/vec/json/simd_json_parser.h
b/be/src/vec/json/simd_json_parser.h
index 04e1740d871..1f4fc4dca42 100644
--- a/be/src/vec/json/simd_json_parser.h
+++ b/be/src/vec/json/simd_json_parser.h
@@ -27,6 +27,8 @@
namespace doris::vectorized {
+#include "common/compile_check_begin.h"
+
/// This class can be used as an argument for the template class FunctionJSON.
/// It provides ability to parse JSONs using simdjson library.
class SimdJSONParser {
@@ -176,4 +178,6 @@ inline ALWAYS_INLINE SimdJSONParser::Object
SimdJSONParser::Element::getObject()
return element.get_object().value_unsafe();
}
+#include "common/compile_check_end.h"
+
} // namespace doris::vectorized
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]