Skip to content

Instantly share code, notes, and snippets.

@stuhood
Created November 18, 2010 22:21
Show Gist options
  • Save stuhood/705770 to your computer and use it in GitHub Desktop.
Save stuhood/705770 to your computer and use it in GitHub Desktop.
record Column {
bytes name;
bytes value;
long timestamp;
union { int, null } ttl;
}
// becomes...
record Column {
bytes name;
bytes value;
Timestamp new_timestamp;
Timestamp new_ttl;
/* deprecated */
long timestamp;
union { int, null } ttl;
}
// post removal
record Column {
bytes name;
bytes value;
Timestamp @aliases(["new_timestamp"]) timestamp;
Timestamp @aliases(["new_ttl"]) ttl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment