rahulketch commented on code in PR #3243:
URL: https://github.com/apache/parquet-java/pull/3243#discussion_r2333918746


##########
parquet-hadoop/src/main/java/org/apache/parquet/format/converter/ParquetMetadataConverter.java:
##########
@@ -762,12 +772,12 @@ public List<PageEncodingStats> 
convertEncodingStats(EncodingStats stats) {
     return formatStats;
   }
 
-  public static Statistics 
toParquetStatistics(org.apache.parquet.column.statistics.Statistics stats) {
-    return toParquetStatistics(stats, 
ParquetProperties.DEFAULT_STATISTICS_TRUNCATE_LENGTH);
+  public Statistics toParquetStatistics(String createdBy, 
org.apache.parquet.column.statistics.Statistics stats) {

Review Comment:
   I am not sure of a better way to achieve this. We need to:
   1. Know created-by in order to have an allow-list for valid readers
   2. Make the function non-static so we can respect the flag which disables 
reading the stats.
   
   Any ideas for this?
   
   



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