public boolean isNull() {
    if (type == Type.NULL || value == null) {
      return true;
    }
    return false;
  }
Check if the variable contains NULL
hplsql/src/main/java/org/apache/hive/hplsql/Var.java