Skip to content

Commit dbb3e92

Browse files
author
nullccxsy
committed
fix comments
1 parent 11126f9 commit dbb3e92

File tree

2 files changed

+310
-342
lines changed

2 files changed

+310
-342
lines changed

src/iceberg/schema.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,8 @@ Result<std::unique_ptr<Schema>> Schema::Select(std::span<const std::string> name
356356
bool case_sensitive) const {
357357
const std::string kAllColumns = "*";
358358
if (std::ranges::find(names, kAllColumns) != names.end()) {
359-
return std::make_unique<Schema>(*this);
359+
auto struct_type = ToStructType(*this);
360+
return FromStructType(std::move(*struct_type), std::nullopt);
360361
}
361362

362363
std::unordered_set<int32_t> selected_ids;

0 commit comments

Comments
 (0)