lib/rbhive/connection.rb in rbhive-0.2.4 vs lib/rbhive/connection.rb in rbhive-0.2.5

- old
+ new

@@ -54,9 +54,16 @@ def execute(query) execute_safe(query) end + def explain(query) + safe do + execute_unsafe("EXPLAIN "+ query) + ExplainResult.new(client.fetchAll) + end + end + def priority=(priority) set("mapred.job.priority", priority) end def queue=(queue)