File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 7
7
#include < ydb/core/tx/datashard/range_ops.h>
8
8
#endif
9
9
10
+ #include < yql/essentials/minikql/mkql_node_builder.h>
11
+
10
12
namespace NKikimr {
11
13
namespace NKqp {
12
14
13
15
using namespace NMiniKQL ;
14
16
using namespace NYql ;
15
17
using namespace NYql ::NNodes;
16
18
17
- NUdf::TUnboxedValue MakeDefaultValueByType (const NKikimr::NMiniKQL::TType* type) {
19
+ NUdf::TUnboxedValue MakeDefaultValueByType (NKikimr::NMiniKQL::TType* type) {
20
+ bool isOptional;
21
+ type = UnpackOptional (type, isOptional);
22
+ Y_ABORT_UNLESS (type->IsData (), " %s" , type->GetKindAsStr ());
23
+
18
24
auto dataType = static_cast <const NKikimr::NMiniKQL::TDataType*>(type);
19
25
switch (dataType->GetSchemeType ()) {
20
26
case NUdf::TDataType<bool >::Id:
Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ class TKqpTableKeys {
233
233
THashMap<TTableId, TTable> TablesById;
234
234
};
235
235
236
- NUdf::TUnboxedValue MakeDefaultValueByType (const NKikimr::NMiniKQL::TType* type);
236
+ NUdf::TUnboxedValue MakeDefaultValueByType (NKikimr::NMiniKQL::TType* type);
237
237
238
238
TVector<TCell> MakeKeyCells (const NKikimr::NUdf::TUnboxedValue& value, const TVector<NScheme::TTypeInfo>& keyColumnTypes,
239
239
const TVector<ui32>& keyColumnIndices, const NMiniKQL::TTypeEnvironment& typeEnv, bool copyValues);
You can’t perform that action at this time.
0 commit comments