Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
"type" : "record",
"name" : "customers",
"namespace" : "customer",
"fields" : [ {
"name" : "customer_id",
"type" : "long"
}, {
"name" : "name",
"type" : "string"
}, {
"name" : "addresses",
"type" : {
"type" : "record",
"name" : "customers",
"namespace" : "addresses.customer",
"fields" : [ {
"name" : "address",
"type" : {
"type" : "array",
"items" : {
"type" : "record",
"name" : "customers",
"namespace" : "address.addresses.customer",
"fields" : [ {
"name" : "type",
"type" : "string"
}, {
"name" : "value",
"type" : "string"
} ]
}
}
} ]
}
}, {
"name" : "accounts",
"type" : {
"type" : "record",
"name" : "customers",
"namespace" : "accounts.customer",
"fields" : [ {
"name" : "account",
"type" : {
"type" : "array",
"items" : {
"type" : "record",
"name" : "customers",
"namespace" : "account.accounts.customer",
"fields" : [ {
"name" : "account_id",
"type" : "long"
}, {
"name" : "shortname",
"type" : "string"
}, {
"name" : "balance",
"type" : "double"
}, {
"name" : "transactions",
"type" : [ "null", {
"type" : "record",
"name" : "customers",
"namespace" : "transactions.account.accounts.customer",
"fields" : [ {
"name" : "transaction",
"type" : {
"type" : "array",
"items" : {
"type" : "record",
"name" : "customers",
"namespace" : "transaction.transactions.account.accounts.customer",
"fields" : [ {
"name" : "transaction_id",
"type" : "long"
}, {
"name" : "source_account_id",
"type" : "long"
}, {
"name" : "destination_account_id",
"type" : "long"
}, {
"name" : "amount",
"type" : "double"
} ]
}
}
} ]
} ]
} ]
}
}
} ]
}
} ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment