Skip to content

Use Logical type instead type in generate #231

Closed Answered by dstelljes
andrehinckel asked this question in Q&A
Discussion options

You must be logged in to vote

Chr.Avro supports mapping the "timestamp-millis" and "timestamp-micros" logical types to DateTime, so you could use one of those. It doesn’t support mapping "date" to DateTime due to the lack of a time component (see the docs).

To customize your generated schemas, you can use the --temporal-behavior flag on the CLI or the temporalBehavior parameter on SchemaBuilder.

We’d be open to supporting "date" with the new DateOnly type, but we don’t have that functionality presently.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@tkring
Comment options

@dstelljes
Comment options

Answer selected by andrehinckel
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants