Skip to content

Commit

Permalink
Print actual decimal type on type mismatch (#5962)
Browse files Browse the repository at this point in the history
  • Loading branch information
resetius authored Jun 26, 2024
1 parent 5cfb36a commit ac37933
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ydb/library/yql/core/type_ann/type_ann_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ac37933

Please sign in to comment.