[
https://issues.apache.org/jira/browse/AVRO-3478?focusedWorklogId=787412&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-787412
]
ASF GitHub Bot logged work on AVRO-3478:
----------------------------------------
Author: ASF GitHub Bot
Created on: 03/Jul/22 15:49
Start Date: 03/Jul/22 15:49
Worklog Time Spent: 10m
Work Description: KalleOlaviNiemitalo commented on code in PR #1630:
URL: https://github.com/apache/avro/pull/1630#discussion_r912504918
##########
lang/csharp/src/apache/test/Util/LogicalTypeTests.cs:
##########
@@ -405,6 +405,52 @@ public void TestTimeMicrosecond(string s, string e, bool
expectRangeError)
}
}
+ [TestCase(0, 0, 0)]
+ [TestCase(0, 0, 1)]
+ [TestCase(0, 1, 0)]
+ [TestCase(0, 1, 1)]
+ [TestCase(1, 0, 0)]
+ [TestCase(1, 0, 1)]
+ [TestCase(1, 1, 0)]
+ [TestCase(1, 1, 1)]
+ [TestCase(999, 9999, 99999)]
+ public void TestDuration(int months, int days, int milliseconds)
+ {
+ var durationSchema = (LogicalSchema)Schema.Parse("{\"type\":
{\"type\": \"fixed\", \"size\": 12, \"name\": \"n\"}, \"logicalType\":
\"duration\"}");
Review Comment:
Filed AVRO-3570
Issue Time Tracking
-------------------
Worklog Id: (was: 787412)
Remaining Estimate: 21h 20m (was: 21.5h)
Time Spent: 2h 40m (was: 2.5h)
> Support duration logical type in C#
> -----------------------------------
>
> Key: AVRO-3478
> URL: https://issues.apache.org/jira/browse/AVRO-3478
> Project: Apache Avro
> Issue Type: Improvement
> Components: csharp
> Reporter: Zoltan Csizmadia
> Priority: Minor
> Labels: pull-request-available
> Original Estimate: 24h
> Time Spent: 2h 40m
> Remaining Estimate: 21h 20m
>
> Support for "duration" logical type
--
This message was sent by Atlassian Jira
(v8.20.10#820010)