You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by "rubenada (via GitHub)" <gi...@apache.org> on 2023/04/17 19:07:23 UTC

[GitHub] [calcite] rubenada commented on a diff in pull request #3154: CALCITE-5649 Produce row count statistics from ReflectiveSchema for array based tables

rubenada commented on code in PR #3154:
URL: https://github.com/apache/calcite/pull/3154#discussion_r1169168746


##########
core/src/main/java/org/apache/calcite/adapter/java/ReflectiveSchema.java:
##########
@@ -235,6 +240,13 @@ private static Enumerable toEnumerable(final Object o) {
         "Cannot convert " + o.getClass() + " into a Enumerable");
   }
 
+  private static @Nullable Double toRowCount(final Object o) {
+    if (o.getClass().isArray()) {

Review Comment:
   Would it make sense to consider also the case where `o` is a Collection?



-- 
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: commits-unsubscribe@calcite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org