question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to Date type -> AVRO -> Presto

See original GitHub issue

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 type in presto?

For this I’ve got presto typed as timestamp.imillis | bigint | | .

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:18 (18 by maintainers)

github_iconTop GitHub Comments

2reactions
sijiecommented, Sep 5, 2019

@codelipenghui @congbobo184 can any of you help @KannarFr with his question? Also if the documentation is missing, it might be worth improving the documentation about this part.

0reactions
sijiecommented, Sep 4, 2020

@KannarFr is your question answered?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Date and Time Functions and Operators - Presto
Returns the current time zone in the format defined by IANA (e.g., America/Los_Angeles ) or as fixed offset from UTC (e.g., +08:35 )....
Read more >
Does all of three: Presto, hive and impala support Avro data ...
Primarily, I am looking for avro support with Presto now. However, lets consider following data formats stored on HDFS: Avro format; Parquet ...
Read more >
Avro Parser Function - Product Documentation
Using the Avro Parser Function from the Treasure Data Console ... If it does not, you can manually select it from the Parser...
Read more >
Complex Data Types - Okera Documentation
Complex type support applies to data stored in Avro, Parquet and JSON formats. ... The examples below reflect the expected Presto experience.
Read more >
Avro Tables - Qubole Data Service Documentation
Qubole supports creating Hive tables against data in Avro format. Getting Avro schema from a file¶. If you have an Avro file, you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found