lokeshj1703 commented on code in PR #17601:
URL: https://github.com/apache/hudi/pull/17601#discussion_r2877457468


##########
hudi-hadoop-common/src/main/java/org/apache/parquet/avro/HoodieAvroReadSupport.java:
##########
@@ -36,19 +40,23 @@
  */
 public class HoodieAvroReadSupport<T> extends AvroReadSupport<T> {
 
-  public HoodieAvroReadSupport(GenericData model) {
+  private Option<MessageType> tableSchema;
+
+  public HoodieAvroReadSupport(GenericData model, Option<MessageType> 
tableSchema) {

Review Comment:
   The read support is created in 
`org.apache.hudi.io.hadoop.HoodieAvroParquetReader#getIndexedRecordIteratorInternal`
 in the caller chain. This takes in the schema from arguments so I guess we 
will have to pay the repair cost here in every call.



-- 
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