[ 
https://issues.apache.org/jira/browse/AVRO-4162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18077784#comment-18077784
 ] 

ASF subversion and git services commented on AVRO-4162:
-------------------------------------------------------

Commit a4124a76e11bb3a1a011bd4b9df379efad0d27c4 in avro's branch 
refs/heads/branch-1.12 from ChristophMajcenAtXxxlutz
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=a4124a76e1 ]

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: 1h
>  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)

Reply via email to