You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/09/04 11:57:30 UTC

[GitHub] [pulsar] KannarFr opened a new issue #5112: How to Date type -> AVRO -> Presto

KannarFr opened a new issue #5112: How to Date type -> AVRO -> Presto
URL: https://github.com/apache/pulsar/issues/5112
 
 
   Hi,
   
   I checked https://github.com/apache/pulsar/blob/master/pulsar-client/src/test/java/org/apache/pulsar/client/impl/schema/AvroSchemaTest.java#L80.
   
   First question, `java.time.LocalDateTime` is supported?
   
   Second about this issue:
   
   I've got a schema with timestamp value, I tried to encode it using the example provided via Joda. Here is the schema for this attribute:
   
   ```
         {
           "name": "timestamp",
           "type": {
             "type": "record",
             "name": "DateTime",
             "namespace": "org.joda.time",
             "fields": [
               {
                 "name": "iMillis",
                 "type": "long"
               },
               {
                 "name": "iChronology",
                 "type": {
                   "type": "record",
                   "name": "Chronology",
                   "fields": []
                 }
               }
             ]
           }
         },
   ```
   
   How get a generic date type, not jvm one, to output it as timestamp in presto?
   
   For this I've got presto typed as  `timestamp.imillis    | bigint    |       | `.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services