[
https://issues.apache.org/jira/browse/AVRO-2474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17116783#comment-17116783
]
Erik Erlandson commented on AVRO-2474:
--------------------------------------
[~rskraba] [~iemejia] I agree that this feature ought to be voted on, or
otherwise formally discussed by the community. It involves a few hundred lines
of new code (per language). I submitted pr #841 so that the community could
see how this feature would work, and what the implementation entails, etc, so
people have something "real" to make a decision with, instead of voting on an
abstract AEP doc.
It involves more than just code - as you can see in the PR I need to define a
JSON (sub)schema for expressing units, and while I'm happy with the shape of
the current proposal, there are multiple design choices that might be made here.
Lastly, adopting this implies committing to multiple language implementations,
not just python. The good news is that it can easily enough be implemented on a
per-language basis, but eventually implementations would be needed for at least
some popular subset of the avro language bindings (I'm guessing at least
python, java and c++).
I do not know what the timeline for 1.10 branch-cut is. In theory I could
massage #841 into a merge-able state fairly quickly, but it is a high-impact
feature and I don't really want to rush it.
> Support a "unit" property of schema fields
> ------------------------------------------
>
> Key: AVRO-2474
> URL: https://issues.apache.org/jira/browse/AVRO-2474
> Project: Apache Avro
> Issue Type: Improvement
> Components: spec
> Affects Versions: 1.9.0
> Reporter: Erik Erlandson
> Priority: Major
> Labels: aep
>
> Recently I have been experimenting with avro schema that are extended with a
> "unit" field. By "unit" I mean expressions like "second", or "megabyte" -
> that is "units of measure".
>
> I received some community interest in making this concept "first class" for
> avro; I'm filing this JIRA to track the idea.
>
> I delivered a short talk on my experiments at Berlin Buzzwords, which can be
> viewed here:
> [https://www.youtube.com/watch?v=qrQmB2KFKE8]
>
> I also wrote a short blog post that may be faster to ingest:
> [http://erikerlandson.github.io/blog/2019/05/23/unit-types-for-avro-schema-integrating-avro-with-coulomb/]
>
> The project itself is here:
> [https://github.com/erikerlandson/coulomb]
>
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)