in java/ws-server/src/main/java/com/epam/deltix/tbwg/webapp/services/grafana/qql/SelectBuilder2.java [310:344]
public Type equalTo(String value) throws WrongTypeException {
if (value.equalsIgnoreCase("null") || value.equalsIgnoreCase("NaN")) {
return isNull();
} else if (value.equalsIgnoreCase("-infinity")) {
if (dataType instanceof FloatDataType) {
// ToDo
FloatDataType floatDataType = (FloatDataType) dataType;
if (floatDataType.isFloat()) {
return isNull();
} else if (floatDataType.isDecimal64()) {
return isNull();
} else {
return isNull();
}
} else {
throw new WrongTypeException(fieldName, value, dataType);
}
} else if (value.equalsIgnoreCase("+infinity")) {
if (dataType instanceof FloatDataType) {
// ToDo
FloatDataType floatDataType = (FloatDataType) dataType;
if (floatDataType.isFloat()) {
return isNull();
} else if (floatDataType.isDecimal64()) {
return isNull();
} else {
return isNull();
}
} else {
throw new WrongTypeException(fieldName, value, dataType);
}
} else {
return compare(value, "=");
}
}