[CP] add serialization size check

This commit is contained in:
zhjc1124
2023-12-02 05:12:16 +00:00
committed by ob-robot
parent d1e0eaa2bc
commit 0bda0dbd95
23 changed files with 140 additions and 3 deletions

View File

@ -1235,6 +1235,7 @@ struct ObSerCArray
ObSerCArray(T &data, U &cnt) : data_(data), cnt_(cnt) {}
T &data_;
U &cnt_;
TO_STRING_KV(K(cnt_));
};
template <typename T, typename U>

View File

@ -103,6 +103,7 @@ public:
common::ObFixedArray<ObExprResType, common::ObIAllocator> udf_attributes_types_;
// indicate the argument is const expr or not
common::ObFixedArray<bool, common::ObIAllocator> args_const_attr_;
TO_STRING_KV(K(udf_meta_), K(udf_attributes_), K(udf_attributes_types_), K(args_const_attr_));
};
OB_DEF_SERIALIZE(ObDllUdfInfo<UF>, template<typename UF>)

View File

@ -40,6 +40,7 @@ public:
ObIExprExtraInfo *&copied_info) const = 0;
public:
ObExprOperatorType type_;
TO_STRING_KV(K(type_));
};
} // end namespace sql