Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
Impala 1.4, Impala 1.4.1
-
None
-
CDH5.1.0 Debian 7.X Impala 1.4.0 Parcel
Description
SELECT subject, IF(mail_sent_date_ts BETWEEN "2012-04-01 00:00:00" AND "2012-04-30 00:00:00", sent, 0) AS sent2 FROM mail WHERE activity_ts BETWEEN "2012-04-01 00:00:00" AND "2012-04-30 00:00:00" GROUP BY subject, mail_sent_date_ts, sent
This request works on Impala 1.2.3 but not on Impala 1.4.0. I've got the following errors :
Your query has the following error(s): AnalysisException: select list expression not produced by aggregation output (missing from GROUP BY clause?): IF(mail_sent_date_ts BETWEEN "2012-04-01 00:00:00" AND "2012-04-30 00:00:00", sent, 0)
I don't know if it's related but the field `mail_sent_date_ts` is a `timestamp` in Impala Parquet format.