We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 581023b commit c6c1f38Copy full SHA for c6c1f38
src/iceberg/schema.cc
@@ -444,11 +444,11 @@ class PruneColumnVisitor {
444
}
445
446
Status ProjectStruct(const SchemaField& field, std::unique_ptr<Type>* out) const {
447
- if (out && (*out)->type_id() != TypeId::kStruct) {
+ if (*out && (*out)->type_id() != TypeId::kStruct) {
448
return InvalidArgument("Project struct {}:{}, but result is not StructType",
449
field.name(), field.field_id());
450
451
- if (out == nullptr) {
+ if (*out == nullptr) {
452
*out = std::make_unique<StructType>(std::vector<SchemaField>{});
453
454
return {};
0 commit comments