File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
presto-hive/src/main/java/com/facebook/presto/hive Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -384,13 +384,15 @@ public QuickStatsProvider createQuickStatsProvider(HdfsEnvironment hdfsEnvironme
384
384
FileFormatDataSourceStats fileFormatDataSourceStats ,
385
385
MBeanExporter exporter )
386
386
{
387
+ ParquetQuickStatsBuilder parquetQuickStatsBuilder = new ParquetQuickStatsBuilder (fileFormatDataSourceStats , hdfsEnvironment , hiveClientConfig );
387
388
QuickStatsProvider quickStatsProvider = new QuickStatsProvider (hdfsEnvironment ,
388
389
directoryLister ,
389
390
hiveClientConfig ,
390
391
nameNodeStats ,
391
- // Ordered list of strategies to apply to decipher quick stats
392
- ImmutableList .of (new ParquetQuickStatsBuilder ( fileFormatDataSourceStats , hdfsEnvironment , hiveClientConfig ) ));
392
+ // Ordered list of strategies to apply to build quick stats
393
+ ImmutableList .of (parquetQuickStatsBuilder ));
393
394
exporter .export (generatedNameOf (QuickStatsProvider .class , connectorId + "_QuickStatsProvider" ), quickStatsProvider );
395
+ exporter .export (generatedNameOf (ParquetQuickStatsBuilder .class , connectorId + "_ParquetQuickStatsBuilder" ), parquetQuickStatsBuilder );
394
396
return quickStatsProvider ;
395
397
}
396
398
}
You can’t perform that action at this time.
0 commit comments