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:
[email protected]


With regards,
Apache Git Services

Reply via email to