diff options
author | vvvv <vvvv@ydb.tech> | 2023-03-21 08:48:30 +0300 |
---|---|---|
committer | vvvv <vvvv@ydb.tech> | 2023-03-21 08:48:30 +0300 |
commit | 313f836da84cf3f30f4c0ad01f5eca0e1f1e7935 (patch) | |
tree | 8508f418a4d35b481ed24803d2e25552c36fe556 | |
parent | dde60d49004ccf33a73fa2ae77274ceef283ed6e (diff) | |
download | ydb-313f836da84cf3f30f4c0ad01f5eca0e1f1e7935.tar.gz |
fix Unwrap for PG
-rw-r--r-- | ydb/library/yql/core/type_ann/type_ann_core.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ydb/library/yql/core/type_ann/type_ann_core.cpp b/ydb/library/yql/core/type_ann/type_ann_core.cpp index 9ac10f2577..2b3cdcd66e 100644 --- a/ydb/library/yql/core/type_ann/type_ann_core.cpp +++ b/ydb/library/yql/core/type_ann/type_ann_core.cpp @@ -4692,6 +4692,11 @@ namespace NTypeAnnImpl { return IGraphTransformer::TStatus::Error; } + if (input->Head().GetTypeAnn()->GetKind() == ETypeAnnotationKind::Pg) { + ctx.Expr.AddError(TIssue(ctx.Expr.GetPosition(input->Head().Pos()), "Can't unwrap PostgreSQL type")); + return IGraphTransformer::TStatus::Error; + } + if (input->Head().GetTypeAnn()->GetKind() == ETypeAnnotationKind::Null) { output = ctx.Expr.ChangeChild(*input, 0, ctx.Expr.Builder(input->Pos()) .Callable("Nothing") |