This commit is contained in:
李扬 2024-03-06 15:10:45 +08:00 committed by GitHub
parent 8b2e163d76
commit e4b78e7dac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -422,7 +422,7 @@ private:
res_data.resize_exact(rows); res_data.resize_exact(rows);
if constexpr (nullable_result) if constexpr (nullable_result)
{ {
if (res_null_map) if (!res_null_map)
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Invalid result null_map while result type is nullable"); throw Exception(ErrorCodes::BAD_ARGUMENTS, "Invalid result null_map while result type is nullable");
res_null_map->resize_exact(rows); res_null_map->resize_exact(rows);