Created
November 2, 2017 16:05
-
-
Save seanjensengrey/aa2725763b4ea40922247cfff11c9901 to your computer and use it in GitHub Desktop.
avro tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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