yadavay-amzn commented on code in PR #3607:
URL: https://github.com/apache/parquet-java/pull/3607#discussion_r3376193570


##########
parquet-column/src/main/java/org/apache/parquet/CorruptStatistics.java:
##########
@@ -35,6 +36,8 @@
  */
 public class CorruptStatistics {
   private static final AtomicBoolean alreadyLogged = new AtomicBoolean(false);
+  private static final ConcurrentHashMap<String, Boolean> CACHE = new 
ConcurrentHashMap<>();

Review Comment:
   Removed the global static cache entirely. Now computes 
`shouldIgnoreStatistics` once per file in `fromParquetMetadata` before the 
row-group loop and passes the pre-computed flag through 
`buildColumnChunkMetaData` to `fromParquetStatisticsInternal`.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to