Skip to content

Commit a116bcf

Browse files
author
xiao.dong
committed
fix type
1 parent 76a5131 commit a116bcf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/iceberg/manifest_reader_internal.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,13 @@ namespace iceberg {
8484
} \
8585
}
8686

87-
#define PARSE_PRIMITIVE_VECTOR_FIELD(item, count, array_view) \
87+
#define PARSE_PRIMITIVE_VECTOR_FIELD(item, count, array_view, type) \
8888
for (int64_t manifest_idx = 0; manifest_idx < count; manifest_idx++) { \
8989
auto offset = ArrowArrayViewListChildOffset(array_view, manifest_idx); \
9090
auto next_offset = ArrowArrayViewListChildOffset(array_view, manifest_idx + 1); \
9191
for (int64_t offset_idx = offset; offset_idx < next_offset; offset_idx++) { \
92-
item.emplace_back( \
93-
ArrowArrayViewGetIntUnsafe(array_view->children[0], offset_idx)); \
92+
item.emplace_back(static_cast<type>( \
93+
ArrowArrayViewGetIntUnsafe(array_view->children[0], offset_idx))); \
9494
} \
9595
}
9696

@@ -445,12 +445,12 @@ Status ParseDataFile(const std::shared_ptr<StructType>& data_file_schema,
445445
case 13:
446446
PARSE_PRIMITIVE_VECTOR_FIELD(
447447
manifest_entries[manifest_idx].data_file->split_offsets, manifest_entry_count,
448-
view_of_file_field);
448+
view_of_file_field, int64_t);
449449
break;
450450
case 14:
451451
PARSE_PRIMITIVE_VECTOR_FIELD(
452452
manifest_entries[manifest_idx].data_file->equality_ids, manifest_entry_count,
453-
view_of_file_field);
453+
view_of_file_field, int32_t);
454454
break;
455455
case 15:
456456
PARSE_PRIMITIVE_FIELD(manifest_entries[row_idx].data_file->sort_order_id,

0 commit comments

Comments
 (0)