Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
We are using Hive 2.1.1 and NULLIF is support in 2.3.0 onwards
Browse files Browse the repository at this point in the history
  • Loading branch information
ziafazal committed Sep 13, 2019
1 parent 25e870f commit 259d85c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edx/analytics/tasks/enterprise/enterprise_enrollments.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def insert_query(self):
consent.granted AS consent_granted,
grades.letter_grade,
CASE
WHEN grades.passed_timestamp IS NOT NULL AND NULLIF(grades.letter_grade,'') IS NOT NULL THEN 1
WHEN grades.passed_timestamp IS NOT NULL AND grades.letter_grade <> '' AND grades.letter_grade IS NOT NULL THEN 1
ELSE 0
END AS has_passed,
grades.passed_timestamp,
Expand Down

0 comments on commit 259d85c

Please sign in to comment.