Skip to content

Instantly share code, notes, and snippets.

@seanjensengrey
Created November 2, 2017 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanjensengrey/aa2725763b4ea40922247cfff11c9901 to your computer and use it in GitHub Desktop.
Save seanjensengrey/aa2725763b4ea40922247cfff11c9901 to your computer and use it in GitHub Desktop.
avro tests
{
"type" : "record",
"name" : "twitter_schema",
"namespace" : "com.miguno.avro",
"fields" : [ {
"name" : "username",
"type" : "string",
"doc" : "Name of the user account on Twitter.com"
}, {
"name" : "tweet",
"type" : "string",
"doc" : "The content of the user's Twitter message"
}, {
"name" : "timestamp",
"type" : "long",
"doc" : "Unix epoch time in seconds"
} ],
"doc:" : "A basic schema for storing Twitter messages"
}
{
"type" : "record",
"name" : "Root",
"fields" : [ {
"name" : "username",
"type" : "string"
}, {
"name" : "tweet",
"type" : "string"
}, {
"name" : "timestamp",
"type" : "long"
} ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment