Skip to content

Commit 2da1098

Browse files
committed
Intermediate changes
commit_hash:53759c0ad54d8ed6447883bcccacfbb181c305b6
1 parent ed23711 commit 2da1098

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

yt/yt/library/formats/arrow_writer.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -296,12 +296,12 @@ TArrowSchemaType SerializeStructColumnType(
296296
std::vector<flatbuffers::Offset<flatbuf::Field>> fieldOffsets;
297297
fieldOffsets.reserve(fields.size());
298298

299-
for (const auto& [fieldName, fieldType] : fields) {
299+
for (const auto& field : fields) {
300300
auto fieldOffset = CreateRegularField(
301301
flatbufBuilder,
302-
/*schemaType*/ SerializeColumnType(flatbufBuilder, fieldType, arrowConfig),
303-
/*name*/ SerializeString(flatbufBuilder, fieldName),
304-
fieldType->IsNullable());
302+
/*schemaType*/ SerializeColumnType(flatbufBuilder, field.Type, arrowConfig),
303+
/*name*/ SerializeString(flatbufBuilder, field.Name),
304+
field.Type->IsNullable());
305305

306306
fieldOffsets.push_back(fieldOffset);
307307
}
@@ -1459,8 +1459,8 @@ void CreateBuffersForComplexType(
14591459
}
14601460

14611461
case ELogicalMetatype::Struct:
1462-
for (const auto& [fieldName, fieldType] : type->GetFields()) {
1463-
CreateBuffersForComplexType(fieldType, config, buffers);
1462+
for (const auto& field : type->GetFields()) {
1463+
CreateBuffersForComplexType(field.Type, config, buffers);
14641464
}
14651465
break;
14661466

@@ -1538,8 +1538,8 @@ int CalculateBufferIndexIncrement(
15381538

15391539
case ELogicalMetatype::Struct: {
15401540
int total = 0;
1541-
for (const auto& [fieldName, fieldType] : type->GetFields()) {
1542-
total += CalculateBufferIndexIncrement(fieldType, config);
1541+
for (const auto& field : type->GetFields()) {
1542+
total += CalculateBufferIndexIncrement(field.Type, config);
15431543
}
15441544
return total;
15451545
}
@@ -2198,9 +2198,9 @@ void WriteBuffersForComplexType(
21982198
}
21992199

22002200
case ELogicalMetatype::Struct:
2201-
for (const auto& [fieldName, fieldType] : type->GetFields()) {
2201+
for (const auto& field : type->GetFields()) {
22022202
WriteBuffersForComplexType(
2203-
fieldType,
2203+
field.Type,
22042204
context,
22052205
config,
22062206
buffers,

0 commit comments

Comments
 (0)