Branching out of trunk to develope YSmart further.


git-svn-id: http://ysmart.googlecode.com/svn/branches/development@268 1d6e5d1b-7b3d-7f63-4173-3946eeb354c0
Changing gen_code to return objects

Instead of dumping results to files, code_gen now keeps results in intances of JobWriter.
Results can be dumppe to corresponding files if needed.
This makes changing and testing YSmart easier.



git-svn-id: http://ysmart.googlecode.com/svn/branches/development@270 1d6e5d1b-7b3d-7f63-4173-3946eeb354c0
Adding a new test suit for testing the backend of YSmart


git-svn-id: http://ysmart.googlecode.com/svn/branches/development@271 1d6e5d1b-7b3d-7f63-4173-3946eeb354c0
Removing the global variable package name and putting it into JobWriter class


git-svn-id: http://ysmart.googlecode.com/svn/branches/development@272 1d6e5d1b-7b3d-7f63-4173-3946eeb354c0
Refactoring code_gen to make it more testable.

I removed the global variable packagename and used a new method for generating names for the generated Java files.


git-svn-id: http://ysmart.googlecode.com/svn/branches/development@273 1d6e5d1b-7b3d-7f63-4173-3946eeb354c0
Adding test cases for some of the ssb benchmarks


git-svn-id: http://ysmart.googlecode.com/svn/branches/development@274 1d6e5d1b-7b3d-7f63-4173-3946eeb354c0
Fixing typo in directory name

untit --> unit


git-svn-id: http://ysmart.googlecode.com/svn/branches/development@275 1d6e5d1b-7b3d-7f63-4173-3946eeb354c0
Adding a test suit for testing geerated hadoop jobs for ssb benchmarks and some simple queries.



git-svn-id: http://ysmart.googlecode.com/svn/branches/development@276 1d6e5d1b-7b3d-7f63-4173-3946eeb354c0
Fixing the typo in directory name.

untit->unit


git-svn-id: http://ysmart.googlecode.com/svn/branches/development@277 1d6e5d1b-7b3d-7f63-4173-3946eeb354c0
Fixing the bug in naming generated MapReduce jobs.

This change is to make YSmart consistent with the online version.
The online version starts file names with a basename + a number. The number starts at 1.
E.g.: TestQuery1.java, TestQuery2.java, ...

This new version now does the same with one difference: It pads the number with zeros to make it 3 digit long.
E.g.: TestQuery001.java TestQuery002.java



git-svn-id: http://ysmart.googlecode.com/svn/branches/development@279 1d6e5d1b-7b3d-7f63-4173-3946eeb354c0
Adding tests for tpch queries and their expected outputs.
Aslos updating expected output files for ssb queries.



git-svn-id: http://ysmart.googlecode.com/svn/branches/development@280 1d6e5d1b-7b3d-7f63-4173-3946eeb354c0
setting advanced_agg mode to True.
This makes this test suit consistent with the online version of YSMart.
OPEN - task 1: YSmart generates different output for tpch queries 3, 17,
18, 21 
http://github.com/meisam/YSmart/issues/issue/1

The problem was that correlation.ysmart_correlation(tree_node) was not
being called on the query plan tree before generating MapReduce jobs.
Removing unused import
Added name and class_name properties for JobWriter

This is needed for fixing issue #4.
See http://github.com/meisam/YSmart/issues/issue/4
Fixed #4 TPCH q21's output does match the output of C/Java-ish YSmart

Some of the created child jobs were being ignored because they were not
being added to the list of currently created jobs.

See http://github.com/meisam/YSmart/issues/issue/4
Setting the reducer class in the generated main method unconditionally

This commit fixes #2:
Generated MapRed does not contain 'job.setReducerClass(Reduce.Class);'
See http://github.com/meisam/YSmart/issues/issue/2
Updating parser's test cases to reflect new names for TPCH queries.