blob: 642438d2b420f51520f21e9a1a4ad9ed2c922bef (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#pragma once
#include <yql/essentials/minikql/mkql_node.h>
namespace NKikimr {
namespace NMiniKQL {
struct TValidateErrorPolicyNone;
struct TValidateErrorPolicyThrow;
struct TValidateErrorPolicyFail;
template <class TErrorPolicy>
struct TValidateModeLazy;
template <class TErrorPolicy>
struct TValidateModeGreedy;
template <class TErrorPolicy, class TValidateMode = TValidateModeLazy<TErrorPolicy>>
struct TValidate {
static NUdf::TUnboxedValue Value(const NUdf::IValueBuilder* valueBuilder, const TType* type,
NUdf::TUnboxedValue&& value, const TString& message, bool* wrapped = nullptr);
static void WrapCallable(const TCallableType* callableType, NUdf::TUnboxedValue& callable, const TString& message);
};
} // namespace NMiniKQL
} // namespace NKikimr
#include "mkql_validate_impl.h"
|