Skip to content

Instantly share code, notes, and snippets.

@rdblue
Created May 17, 2014 00:35
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 rdblue/ca14f2a469f36d7f012c to your computer and use it in GitHub Desktop.
Save rdblue/ca14f2a469f36d7f012c to your computer and use it in GitHub Desktop.
Movie schema with column mappings.
{
"type" : "record",
"name" : "Movie",
"doc" : "Schema generated by Kite",
"fields" : [ {
"name" : "id",
"type" : "long"
}, {
"name" : "title",
"type" : [ "null", "string" ]
}, {
"name" : "release_date",
"type" : [ "null", "string" ]
}, {
"name" : "video_release_date",
"type" : [ "null", "string" ]
}, {
"name" : "imdb_url",
"type" : [ "null", "string" ]
} ],
"mapping": [ {
"source" : "id",
"type" : "key"
}, {
"source" : "title",
"type" : "column",
"family": "m",
"qualifier": "title"
}, {
"source" : "release_date",
"type" : "column",
"family": "m",
"qualifier": "release_date"
}, {
"source" : "video_release_date",
"type" : "column",
"family": "m",
"qualifier": "video_release_date"
}, {
"source" : "imdb_url",
"type" : "column",
"family": "m",
"qualifier": "imdb_url"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment