-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.Datetime is not handled consistently #302
Comments
Chr.Avro prefers to map to ISO 8601 strings for the reasons outlined at https://engineering.chrobinson.com/dotnet-avro/internals/mapping/#dates-and-times.
We wouldn't accept a PR to change the current behavior, but we would accept a PR to introduce hints on the schema similar to the Java client (see #173).
The |
Summary
System.DateTime properties are converted to strings in AVRO
AVRO long > timestamp-millis are generated as System.DateTime POCO class properties
Details
Using create...
Datetime .NET types are generated as a string
Using generate...
This fragment of an AVRO definition
Generates this C# property
Would you accept a PR from my fork?
ex:
Note: I also added a -f command line option to read the avsc input from a local file. I found that to be easier to use.
-f, --schema-file The full pathname of the avsc schema file on disk.
The text was updated successfully, but these errors were encountered: