Remove unused code and unnecessary check (#1918)

This commit is contained in:
kangkaisen
2019-09-30 18:35:30 +08:00
committed by ZHAO Chun
parent 8aa8e08f27
commit 4e8d728e75
8 changed files with 3 additions and 49 deletions

View File

@ -149,8 +149,7 @@ OLAPStatus DeleteConditionHandler::check_condition_valid(
valid_condition = valid_unsigned_number<uint64_t>(value_str);
} else if (field_type == OLAP_FIELD_TYPE_DECIMAL) {
valid_condition = valid_decimal(value_str, column.precision(), column.frac());
} else if (field_type == OLAP_FIELD_TYPE_CHAR || field_type == OLAP_FIELD_TYPE_VARCHAR
|| field_type == OLAP_FIELD_TYPE_HLL) {
} else if (field_type == OLAP_FIELD_TYPE_CHAR || field_type == OLAP_FIELD_TYPE_VARCHAR) {
if (value_str.size() <= column.length()) {
valid_condition = true;
}