def raw_json_encoder(o):
    if isinstance(o, TimingStat):
        return o.to_raw_dict(histogram=True)
    else:
        raise TypeError(repr(o) + " is not JSON serializable")
If column_name exists on table_name it's SQL type is returned.  Else an
dataset/ETHPy150Open wadey/python-ostrich/ostrich/stats.py/raw_json_encoder--crossover with--dataset/ETHPy150Open mage2k/pg_partitioner/pg_partitioner/sql_util.py/get_column_type