in java/ws-server/src/main/java/com/epam/deltix/tbwg/webapp/services/grafana/qql/SelectBuilder2.java [375:409]
public Type notEqualTo(String value) throws WrongTypeException {
if (value.equalsIgnoreCase("null")) {
return notNull();
} else if (value.equalsIgnoreCase("-infinity") || value.equalsIgnoreCase("nan")) {
if (dataType instanceof FloatDataType) {
// ToDo
FloatDataType floatDataType = (FloatDataType) dataType;
if (floatDataType.isFloat()) {
return notNull();
} else if (floatDataType.isDecimal64()) {
return notNull();
} else {
return notNull();
}
} 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 notNull();
} else if (floatDataType.isDecimal64()) {
return notNull();
} else {
return notNull();
}
} else {
throw new WrongTypeException(fieldName, value, dataType);
}
} else {
return compare(value, "!=");
}
}