[
https://issues.apache.org/jira/browse/AVRO-3424?focusedWorklogId=733660&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-733660
]
ASF GitHub Bot logged work on AVRO-3424:
----------------------------------------
Author: ASF GitHub Bot
Created on: 27/Feb/22 22:43
Start Date: 27/Feb/22 22:43
Worklog Time Spent: 10m
Work Description: zcsizmadia edited a comment on pull request #1571:
URL: https://github.com/apache/avro/pull/1571#issuecomment-1053707162
I think this is what you want to achieve?
```
class Schema
{
...
Type ParseType(string type)
{
switch (type)
{
case "null":
return Type.Null;
case "boolean":
return Type.Boolean;
case "int":
return Type.Int;
case "long":
return Type.Long;
case "float":
return Type.Float;
case "double":
return Type.Double;
case "bytes":
return Type.Bytes;
case "string":
return Type.String;
}
return null;
}
...
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 733660)
Time Spent: 1h 20m (was: 1h 10m)
> C# parsing strings into Schema.Type enum
> ----------------------------------------
>
> Key: AVRO-3424
> URL: https://issues.apache.org/jira/browse/AVRO-3424
> Project: Apache Avro
> Issue Type: Improvement
> Components: csharp
> Reporter: Kyle Schoonover
> Priority: Minor
> Labels: pull-request-available
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> Right now this just revolves around the PrimitiveSchema NewInstance method,
> but this would create an extension method for parsing a string into a
> Schema.Type enum.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)