Skip to content

Commit c200eda

Browse files
committed
YQL-19980 a better error report
commit_hash:174ada4d0a62b38d7ea1cf230e76e3b7534cbe82
1 parent e639047 commit c200eda

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

yql/essentials/core/type_ann/type_ann_core.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4443,6 +4443,10 @@ namespace NTypeAnnImpl {
44434443
}
44444444

44454445
const auto sourceType = input->Head().GetTypeAnn();
4446+
if (HasError(sourceType, ctx.Expr)) {
4447+
return IGraphTransformer::TStatus::Error;
4448+
}
4449+
44464450
const auto options = CastResult<Strong>(sourceType, targetType);
44474451
if (!(options & NKikimr::NUdf::ECastOptions::Impossible)) {
44484452
auto type = targetType;

0 commit comments

Comments
 (0)