File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
ydb/core/tx/columnshard/engines/predicate Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 55
66#include < ydb/library/actors/core/log.h>
77#include < ydb/library/formats/arrow/switch/switch_type.h>
8+ #include < type_traits>
89
910namespace NKikimr ::NOlap {
1011
@@ -281,8 +282,14 @@ TConclusion<TPKRangesFilter> TRangesBuilder::Finish() {
281282namespace {
282283template <typename T>
283284TCell MakeDefaultCellByPrimitiveType () {
284- return TCell::Make<T>(T ());
285+ if constexpr (sizeof (T) <= TCell::MaxInlineSize ()) {
286+ return TCell::Make<T>(T ());
287+ } else {
288+ alignas (T) static const T kDefault {};
289+ return TCell (reinterpret_cast <const char *>(&kDefault ), sizeof (T));
290+ }
285291}
292+
286293} // namespace
287294
288295TConclusion<TCell> TRangesBuilder::MakeDefaultCell (const NScheme::TTypeInfo typeInfo) {
You can’t perform that action at this time.
0 commit comments