Sample code for reading and writing tables with hcatalog