Getting a column type for result column