Moving common functions to a signle place.
Changing Decimal type for a column to Integer.
More work on join driver
Functions required for makign a hash table on GPU