Runs a Hive query, returning results as CSV