I am running a query using Hive on Spark which is exhibiting some strange behavior. I\'ve run it multiple times and observed the same behavior. The query: