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 77#include < ydb/core/tx/datashard/range_ops.h>
88#endif
99
10+ #include < yql/essentials/minikql/mkql_node_builder.h>
11+
1012namespace NKikimr {
1113namespace NKqp {
1214
1315using namespace NMiniKQL ;
1416using namespace NYql ;
1517using namespace NYql ::NNodes;
1618
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+
1824 auto dataType = static_cast <const NKikimr::NMiniKQL::TDataType*>(type);
1925 switch (dataType->GetSchemeType ()) {
2026 case NUdf::TDataType<bool >::Id:
Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ class TKqpTableKeys {
233233 THashMap<TTableId, TTable> TablesById;
234234};
235235
236- NUdf::TUnboxedValue MakeDefaultValueByType (const NKikimr::NMiniKQL::TType* type);
236+ NUdf::TUnboxedValue MakeDefaultValueByType (NKikimr::NMiniKQL::TType* type);
237237
238238TVector<TCell> MakeKeyCells (const NKikimr::NUdf::TUnboxedValue& value, const TVector<NScheme::TTypeInfo>& keyColumnTypes,
239239 const TVector<ui32>& keyColumnIndices, const NMiniKQL::TTypeEnvironment& typeEnv, bool copyValues);
You can’t perform that action at this time.
0 commit comments