jghoman/haivvreo — pull request #25 by svemuri (2012-09-26 02:18:16+00:00)
Title: consolidated commit of column selective changes

This is a consolidated commit of column selective deserialization changes.
In case you have looked at the code changes before, here is a brief description of the differences from that version

1. A unit test which exercises the optimization (TestColSelectiveSerde.java)
2. A Hive level functional test for query variants including JOINS (colselectivetest.q). I have tested it out on Hive8.
3. Created a.gitignore file to let git ignore directories like target. dist as candidates for files to be checked in.
4. In terms of the actual code changes, a table property (haivvreo.colselective) can be used to turn off the optimization by setting it to FALSE. it defaults to TRUE. This property can be configured using the TBLPROPERTIES feature of Hive and I have tested it out as well.
5. An existing property "hive.io.file.readcolumn.ids" is used to drive the optimization i.e identify the set of columns requested.
6. Since the code which walks the columns in AvroDeserializer requires that the columns are sorted, and do not contain duplicates, generateColArray method in AvroSerDe.java ensures that this condition is satisfied even if the source property supplied by Hive does not confirm to this condition.
7. There are timers which track deserialization time and number of records optimized which serve to verify if it took the optimized code path. These messages are printed using LOG.info(). I have kept them because I have found them to be useful during testing or when running performance experiments.