lilei1128 opened a new pull request, #7476:
URL: https://github.com/apache/paimon/pull/7476

   <!-- Please specify the module before the PR name: [core] ... or [flink] ... 
-->
   
   ### Purpose
     The clipped Parquet schema (requestedSchema) and its corresponding
     ParquetField list are recomputed on every file read via clipParquetSchema()
     and buildFieldsList(), even though the result is identical for all files
     sharing the same schema version.
   
     Since ParquetReaderFactory is bound to a fixed readType at construction
     time and is reused across multiple files with the same schema version
     (via KeyValueFileReaderFactory.formatReaderMappings), the result only
     needs to be computed once. Add two volatile instance fields to cache the
     result on the first read and reuse them for all subsequent reads.
   
   <!-- Linking this pull request to the issue -->
   Linked issue: close #7281 
   
   <!-- What is the purpose of the change -->
   
   ### Tests
   
   <!-- List UT and IT cases to verify this change -->
   CI
   


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