use ttypes from hive_metastore instead of missing global