I'm new on Impala, and I'm trying to write a query where one field is SUM(X), and I want to put a condition on that field. When I used that query in MySQL, "HAVING SUM(X) IS NOT NULL" worked great - does anyone know what's the equivalent in Impala?
I tried a few ways, this is what I got:
- "HAVING SUM(X) IS NOT NULL" --> AnalysisException: No matching function with signature: isnull(STRING).
- "HAVING SUM(X) NOT NULL" --> AnalysisException: Syntax error in line 93: HAVING SUM(X) NOT NULL ^ Encountered: NULL Expected: BETWEEN, IN, LIKE, REGEXP, RLIKE CAUSED BY: Exception: Syntax error
If anyone has an answer for me I'd really appreciate it... Thank you!