Wie haben Sie die Gruppe ODER-Klausel in der WHERE-Anweisung mit HIVE

Ich würde gerne die Abfrage von den folgenden

(statement1 AND statement2 AND (statement3 OR statement4 ))

dies ist mein hive-Abfrage, die ich bestätigt, dass es nicht funktioniert, da es gibt nur anweisung3, und ich weiß, es gibt den Fall, wo statement4 wahr ist

SELECT 
  cid,
  SUM(count) AS total_count
FROM
  count_by_day
WHERE
  time >= 1435536000
  AND time < 1436140800
  AND(
    cid = '4eb3441f282d4d657a000016'
    OR cid = '14ebe153121a863462300043d'
  )
GROUP BY
  cid

Kann mir jemand sagen was falsch ist? Dank

InformationsquelleAutor Kevin | 2015-07-08
Schreibe einen Kommentar