vlsi commented on a change in pull request #2154:
URL: https://github.com/apache/calcite/pull/2154#discussion_r504472396
##########
File path: core/src/main/java/org/apache/calcite/schema/Statistics.java
##########
@@ -82,12 +84,25 @@ public static Statistic of(final double rowCount,
return of(rowCount, keys, ImmutableList.of(), collations);
}
+ /** Returns a statistic with a given row count and colStatistics. */
+ public static Statistic of(final double rowCount, Map<String, ColStatistics>
colStatistics) {
+ return of(rowCount, ImmutableList.of(), ImmutableList.of(),
ImmutableList.of(), colStatistics);
+ }
+
/** Returns a statistic with a given row count, set of unique keys,
* referential constraints, and collations. */
public static Statistic of(final Double rowCount,
final List<ImmutableBitSet> keys,
final List<RelReferentialConstraint> referentialConstraints,
final List<RelCollation> collations) {
+ return of(rowCount, keys, referentialConstraints, collations, new
HashMap<>());
Review comment:
`ImmutableMap.of()`?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]