fix hive 012 API incompatibility issue