Since Hive 2.1.1 (Hive 2.1.0 was OK), the HiveCLI has a strange behavior when submitting a job with Tez as the exection engine.
Doing a query like:
The query will submit two jobs: one submitted in the queue defined, one submitted in the queue default. Both finish successfully. But only the second job processes the data.
You can find attached a screenshot.
This behavior is not visible when using beeline.