You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by GitBox <gi...@apache.org> on 2021/12/12 11:43:37 UTC

[GitHub] [avro] RyanSkraba commented on a change in pull request #1413: AVRO-2019: Improve docs for logical type annotation

RyanSkraba commented on a change in pull request #1413:
URL: https://github.com/apache/avro/pull/1413#discussion_r767262400



##########
File path: doc/src/content/xdocs/idl.xml
##########
@@ -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;

Review comment:
       Thanks @martin-g !




-- 
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: issues-unsubscribe@avro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org