HIVE-2453. Need a way to categorize queries in hooks for improved logging (Kevin Wilfong via Ning Zhang)