Description
Reproduction:
scala> hql("CREATE TABLE foo AS select unix_timestamp() from src limit 1").collect() res5: Array[org.apache.spark.sql.Row] = Array() scala> hql("SELECT * FROM foo").collect() res6: Array[org.apache.spark.sql.Row] = Array([1403159129], [1403159130])