Skip to content

Commit ac37933

Browse files
authored
Print actual decimal type on type mismatch (#5962)
1 parent 5cfb36a commit ac37933

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ydb/library/yql/core/type_ann/type_ann_core.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -2749,7 +2749,9 @@ namespace NTypeAnnImpl {
27492749
if (!(*dataTypeOne == *dataTypeTwo)) {
27502750
ctx.Expr.AddError(TIssue(
27512751
ctx.Expr.GetPosition(input->Pos()),
2752-
TStringBuilder() << "Cannot calculate with different decimals."
2752+
TStringBuilder() << "Cannot calculate with different decimals: "
2753+
<< static_cast<const TTypeAnnotationNode&>(*dataType[0]) << " != "
2754+
<< static_cast<const TTypeAnnotationNode&>(*dataType[1])
27532755
));
27542756

27552757
return IGraphTransformer::TStatus::Error;

0 commit comments

Comments
 (0)