Skip to content

Commit

Permalink
AVRO-2019: Improve documentation for logical type annotation (apache#…
Browse files Browse the repository at this point in the history
…1413)

This is the 2017 patch from Andrew Rosca, documenting using @logicaltype
to allow arbitrary logical types in IDL.
  • Loading branch information
opwvhk authored Dec 9, 2021
1 parent c1dd47e commit d206242
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/src/content/xdocs/idl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,14 @@ record Job {
time_ms submitTime;
timestamp_ms finishTime;
decimal(9,2) finishRatio;
}
</source>
<p>Logical types can also be specified via an annotation, which is useful for logical types for which a keyword does not exist:</p>
<source>
record Job {
string jobid;
@logicalType("timestamp-micros")
long finishTime;
}
</source>
</section>
Expand Down

0 comments on commit d206242

Please sign in to comment.