code: private boolean validateBucket(String left, String right, String operator)
      {
          Double leftValue = Double.valueOf(left);
          Double rightValue = Double.valueOf(right);
  
          logger.debug("Comparison expression " + operator + "found with left value: " + left + " right value: " + right);
  
          if (Expression.GREATER_THAN.equals(operator))
          {
              return leftValue > rightValue;
          }
          else if (Expression.GREATER_THAN_OR_EQUAL.equals(operator))
          {
              return leftValue >= rightValue;
          }
          else if (Expression.LOWER_THAN.equals(operator))
          {
              return leftValue < rightValue;
          }
          else if (Expression.LOWER_THAN_OR_EQUAL.equals(operator))
          {
              return leftValue <= rightValue;
          }
          else if (Expression.EQUAL.equals(operator))
          {
              return leftValue == rightValue;
          }
          else
          {
              logger.error(operator + " in having clause is not supported in Kundera");
              throw new UnsupportedOperationException(operator + " in having clause is not supported in Kundera");
          }
      }
docs: Validate bucket.
  
  @param left
  the left
  @param right
  the right
  @param operator
  the operator
  @return true, if successful