@Override
  public boolean isSame(Object o) {
    if (!(o instanceof ExprDynamicParamDesc)) {
      return false;
    }
    ExprDynamicParamDesc dest = (ExprDynamicParamDesc) o;
    if (!typeInfo.equals(dest.getTypeInfo())) {
      return false;
    }
    if (value == null) {
      if (dest.getValue() != null) {
        return false;
      }
    } else if (!value.equals(dest.getValue())) {
      return false;
    }
    if (dest.getIndex() != index) {
      return false;
    }

    return true;
  }
An expression representing dynamic parameter.
This is required for Prepare/Execute statements
ql/src/java/org/apache/hadoop/hive/ql/plan/ExprDynamicParamDesc.java