avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nandor Kollar <nkol...@cloudera.com>
Subject SchemaBuilder and logical types
Date Wed, 16 Aug 2017 07:57:52 GMT
Hi,

I'm wondering how to construct a schema with logical types like this with
the SchemaBuilder fluent interface:

{
  "type" : "record",
  "name" : "test_schema",
  "fields" : [ {
    "name" : "test_date_field",
    "type" : {
      "type" : "int",
      *"logicalType" : "date"*
    }
  } ]
}

It looks like SchemaBuilder doesn't support logical types?

Thanks,
Nandor

Mime
View raw message