Adding Query Priority Logic for Hive Driver