public boolean equals(BigDecimal d, Long i) {
    if (d.compareTo(new BigDecimal(i)) == 0) {
      return true;
    }
    return false;
  }
Check if variables of different data types are equal
hplsql/src/main/java/org/apache/hive/hplsql/Var.java