This is an automated email from the ASF dual-hosted git repository.
dataroaring 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 34c5625f418 [fix](ubsan) Set default value for
enable_unique_key_merge_on_write (#36624)
34c5625f418 is described below
commit 34c5625f418e5059e2199230506dad170f0ff589
Author: Lightman <[email protected]>
AuthorDate: Fri Jun 21 12:19:53 2024 +0800
[fix](ubsan) Set default value for enable_unique_key_merge_on_write (#36624)
Fix undefined behavior problem. The detail is SUMMARY:
UndefinedBehaviorSanitizer: undefined-behavior
/home/zcp/repo_center/doris_master/doris/be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:559:19
in
/home/zcp/repo_center/doris_master/doris/be/src/olap/schema_change.cpp:1301:19:
runtime error: load of value 192, which is not a valid value for type
'bool'.
---
be/src/olap/schema_change.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/be/src/olap/schema_change.h b/be/src/olap/schema_change.h
index ae4093063fd..eb0f046270d 100644
--- a/be/src/olap/schema_change.h
+++ b/be/src/olap/schema_change.h
@@ -269,7 +269,7 @@ struct AlterMaterializedViewParam {
struct SchemaChangeParams {
AlterTabletType alter_tablet_type;
- bool enable_unique_key_merge_on_write;
+ bool enable_unique_key_merge_on_write = false;
std::vector<RowsetReaderSharedPtr> ref_rowset_readers;
DeleteHandler* delete_handler = nullptr;
std::unordered_map<std::string, AlterMaterializedViewParam>
materialized_params_map;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]