yihua commented on code in PR #11450:
URL: https://github.com/apache/hudi/pull/11450#discussion_r1640400365
##########
hudi-hadoop-common/src/main/java/org/apache/hudi/io/hadoop/HoodieAvroParquetReader.java:
##########
@@ -166,7 +166,7 @@ private ClosableIterator<IndexedRecord>
getIndexedRecordIteratorInternal(Schema
// NOTE: We have to set both Avro read-schema and projection schema to make
// sure that in case the file-schema is not equal to read-schema
we'd still
// be able to read that file (in case projection is a proper one)
- Configuration hadoopConf = storage.getConf().unwrapAs(Configuration.class);
+ Configuration hadoopConf =
storage.getConf().unwrapCopyAs(Configuration.class);
Review Comment:
Yes, if you're changing the storage configuration for this reader use only,
it's better to make a copy before any change.
--
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]