blob: 57bf0514e56dbb0fb5acc7944f5a60410e3a6137 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#pragma once
#include <yql/essentials/ast/yql_expr.h>
namespace NYql {
// For given optional type returns valid value of its underlying type.
// Block<Optional<X>, Shape::Any> -> X
TExprNode::TPtr MakeValidValue(const TTypeAnnotationNode* type, TPositionHandle pos, TExprContext& ctx);
// Checks if valid value is supported for the given type
bool IsValidValueSupported(const TTypeAnnotationNode* type);
} // namespace NYql
|