[Fix](Status) Make Status [[nodiscard]] and handle returned Status correctly (#23395)
This commit is contained in:
@ -48,7 +48,7 @@ TEST(function_array_element_test, element_at) {
|
||||
{{vec, -1}, Int32(3)}, {{vec, -3}, Int32(1)}, {{vec, -4}, Null()},
|
||||
{{Null(), 1}, Null()}, {{empty_arr, 0}, Null()}, {{empty_arr, 1}, Null()}};
|
||||
|
||||
check_function<DataTypeInt32, true>(func_name, input_types, data_set);
|
||||
static_cast<void>(check_function<DataTypeInt32, true>(func_name, input_types, data_set));
|
||||
}
|
||||
|
||||
// element_at(Array<Int8>, Int32)
|
||||
@ -61,7 +61,7 @@ TEST(function_array_element_test, element_at) {
|
||||
{{vec, -1}, Int8(3)}, {{vec, -3}, Int8(1)}, {{vec, -4}, Null()},
|
||||
{{Null(), 1}, Null()}, {{empty_arr, 0}, Null()}, {{empty_arr, 1}, Null()}};
|
||||
|
||||
check_function<DataTypeInt8, true>(func_name, input_types, data_set);
|
||||
static_cast<void>(check_function<DataTypeInt8, true>(func_name, input_types, data_set));
|
||||
}
|
||||
|
||||
// element_at(Array<Int128>, Int64)
|
||||
@ -75,7 +75,7 @@ TEST(function_array_element_test, element_at) {
|
||||
{{Null(), Int64(1)}, Null()}, {{empty_arr, Int64(0)}, Null()},
|
||||
{{empty_arr, Int64(1)}, Null()}};
|
||||
|
||||
check_function<DataTypeInt128, true>(func_name, input_types, data_set);
|
||||
static_cast<void>(check_function<DataTypeInt128, true>(func_name, input_types, data_set));
|
||||
}
|
||||
|
||||
// element_at(Array<Float64>, Int64)
|
||||
@ -89,7 +89,7 @@ TEST(function_array_element_test, element_at) {
|
||||
{{Null(), Int64(1)}, Null()}, {{empty_arr, Int64(0)}, Null()},
|
||||
{{empty_arr, Int64(1)}, Null()}};
|
||||
|
||||
check_function<DataTypeFloat64, true>(func_name, input_types, data_set);
|
||||
static_cast<void>(check_function<DataTypeFloat64, true>(func_name, input_types, data_set));
|
||||
}
|
||||
|
||||
// element_at(Array<DateTime>, Int64)
|
||||
@ -108,7 +108,7 @@ TEST(function_array_element_test, element_at) {
|
||||
{{empty_arr, Int64(0)}, Null()},
|
||||
{{empty_arr, Int64(1)}, Null()}};
|
||||
|
||||
check_function<DataTypeDateTime, true>(func_name, input_types, data_set);
|
||||
static_cast<void>(check_function<DataTypeDateTime, true>(func_name, input_types, data_set));
|
||||
}
|
||||
|
||||
// element_at(Array<Date>, Int64)
|
||||
@ -127,7 +127,7 @@ TEST(function_array_element_test, element_at) {
|
||||
{{empty_arr, Int64(0)}, Null()},
|
||||
{{empty_arr, Int64(1)}, Null()}};
|
||||
|
||||
check_function<DataTypeDate, true>(func_name, input_types, data_set);
|
||||
static_cast<void>(check_function<DataTypeDate, true>(func_name, input_types, data_set));
|
||||
}
|
||||
|
||||
// element_at(Array<Decimal128>, Int64)
|
||||
@ -146,7 +146,8 @@ TEST(function_array_element_test, element_at) {
|
||||
{{empty_arr, Int64(0)}, Null()},
|
||||
{{empty_arr, Int64(1)}, Null()}};
|
||||
|
||||
check_function<DataTypeDecimal<Decimal128>, true>(func_name, input_types, data_set);
|
||||
static_cast<void>(check_function<DataTypeDecimal<Decimal128>, true>(func_name, input_types,
|
||||
data_set));
|
||||
}
|
||||
|
||||
// element_at(Array<String>, Int32)
|
||||
@ -164,7 +165,7 @@ TEST(function_array_element_test, element_at) {
|
||||
{{empty_arr, 0}, Null()},
|
||||
{{empty_arr, 1}, Null()}};
|
||||
|
||||
check_function<DataTypeString, true>(func_name, input_types, data_set);
|
||||
static_cast<void>(check_function<DataTypeString, true>(func_name, input_types, data_set));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user