Skip to content

Commit 86ca457

Browse files
committed
small polish
1 parent cb19fe0 commit 86ca457

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Storages/ObjectStorage/DataLakes/Iceberg/IcebergDataObjectInfo.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include <Poco/String.h>
12
#include "config.h"
23

34
#if USE_AVRO
@@ -42,12 +43,7 @@ IcebergDataObjectInfo::IcebergDataObjectInfo(Iceberg::ManifestFileEntry data_man
4243
, underlying_format_read_schema_id(data_manifest_file_entry_.schema_id)
4344
, sequence_number(data_manifest_file_entry_.added_sequence_number)
4445
{
45-
auto toupper = [](String & str)
46-
{
47-
std::transform(str.begin(), str.end(), str.begin(), ::toupper);
48-
return str;
49-
};
50-
if (!position_deletes_objects.empty() && toupper(data_manifest_file_entry_.file_format) != "PARQUET")
46+
if (!position_deletes_objects.empty() && Poco::toUpper(data_manifest_file_entry_.file_format) != "PARQUET")
5147
{
5248
throw Exception(
5349
ErrorCodes::NOT_IMPLEMENTED,

0 commit comments

Comments
 (0)