[
https://issues.apache.org/jira/browse/AVRO-4162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18077785#comment-18077785
]
Ryan Skraba commented on AVRO-4162:
-----------------------------------
Cherry-picked to
[branch-1.12|https://github.com/apache/avro/commit/a4124a76e11bb3a1a011bd4b9df379efad0d27c4].
> 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
> Fix For: 1.13.0, 1.12.2
>
> 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)