diff options
author | Alexey Ozeritskiy <aozeritsky@ydb.tech> | 2024-06-26 17:01:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-26 17:01:57 +0200 |
commit | ac37933ea323b5c8e0f5e79ec38bbc83f32d2b4f (patch) | |
tree | 98521b6e54abdffbbb6acf8ed6a6db41422b9639 | |
parent | 5cfb36a31261a5a6eb8de4d5e37dd6ccf1c0c11b (diff) | |
download | ydb-ac37933ea323b5c8e0f5e79ec38bbc83f32d2b4f.tar.gz |
Print actual decimal type on type mismatch (#5962)
-rw-r--r-- | ydb/library/yql/core/type_ann/type_ann_core.cpp | 4 |
1 files changed, 3 insertions, 1 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 8a05eec93e..e6764df776 100644 --- a/ydb/library/yql/core/type_ann/type_ann_core.cpp +++ b/ydb/library/yql/core/type_ann/type_ann_core.cpp @@ -2749,7 +2749,9 @@ namespace NTypeAnnImpl { if (!(*dataTypeOne == *dataTypeTwo)) { ctx.Expr.AddError(TIssue( ctx.Expr.GetPosition(input->Pos()), - TStringBuilder() << "Cannot calculate with different decimals." + TStringBuilder() << "Cannot calculate with different decimals: " + << static_cast<const TTypeAnnotationNode&>(*dataType[0]) << " != " + << static_cast<const TTypeAnnotationNode&>(*dataType[1]) )); return IGraphTransformer::TStatus::Error; |