pitrou commented on code in PR #45330:
URL: https://github.com/apache/arrow/pull/45330#discussion_r1950867561


##########
cpp/src/arrow/dataset/file_parquet.cc:
##########
@@ -835,6 +833,10 @@ Status ParquetFileFragment::SetMetadata(
   DCHECK_EQ(manifest_->descr, original_metadata_->schema())
       << "SchemaDescriptor should be owned by the original FileMetaData";
 
+  if (!physical_schema_) {

Review Comment:
   If you look at the existing uses of `SetMetadata`, they either already took 
the lock or are calling the method on a brand new fragment instance that cannot 
possibly be used from another thread yet.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to