Skip to content

Commit 92b27b6

Browse files
committed
Add ParquetQuickStatsBuilder bean exporter
1 parent a0d25e2 commit 92b27b6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

presto-hive/src/main/java/com/facebook/presto/hive/HiveClientModule.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,13 +384,15 @@ public QuickStatsProvider createQuickStatsProvider(HdfsEnvironment hdfsEnvironme
384384
FileFormatDataSourceStats fileFormatDataSourceStats,
385385
MBeanExporter exporter)
386386
{
387+
ParquetQuickStatsBuilder parquetQuickStatsBuilder = new ParquetQuickStatsBuilder(fileFormatDataSourceStats, hdfsEnvironment, hiveClientConfig);
387388
QuickStatsProvider quickStatsProvider = new QuickStatsProvider(hdfsEnvironment,
388389
directoryLister,
389390
hiveClientConfig,
390391
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));
393394
exporter.export(generatedNameOf(QuickStatsProvider.class, connectorId + "_QuickStatsProvider"), quickStatsProvider);
395+
exporter.export(generatedNameOf(ParquetQuickStatsBuilder.class, connectorId + "_ParquetQuickStatsBuilder"), parquetQuickStatsBuilder);
394396
return quickStatsProvider;
395397
}
396398
}

0 commit comments

Comments
 (0)