[
https://issues.apache.org/jira/browse/AVRO-4162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18077783#comment-18077783
]
ASF subversion and git services commented on AVRO-4162:
-------------------------------------------------------
Commit 5af5735cec1ed939ad40f4f599e099fd2d2b29e8 in avro's branch
refs/heads/main from ChristophMajcenAtXxxlutz
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=5af5735cec ]
AVRO-4162: [csharp] Fix AvroDecimal.CompareTo for values with different scales
(#3744)
* fix(AVRO-4162): dotnet AvroDecimal.CompareTo for values with different scale
* fix(AVRO-4162): Make tests not culture-sensitive
> C# AvroDecimal.CompareTo claims 1.55 > 2.5
> ------------------------------------------
>
> Key: AVRO-4162
> URL: https://issues.apache.org/jira/browse/AVRO-4162
> Project: Apache Avro
> Issue Type: Bug
> Components: csharp
> Affects Versions: 1.12.0
> Reporter: Kalle Niemitalo
> Priority: Major
> Labels: pull-request-available
> Time Spent: 50m
> Remaining Estimate: 0h
>
> {{new AvroDecimal(unscaledValue: 155, scale: 2).CompareTo(new
> AvroDecimal(unscaledValue: 25, scale: 1))}} returns 1, but it should return a
> negative number because 1.55 < 2.5.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)