You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by "adamkennedy (via GitHub)" <gi...@apache.org> on 2023/06/06 08:49:50 UTC

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

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


##########
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:
   Most likely, but I don't have a concrete use case for that variation so I have just implemented the one I have myself and expected anyone with additional cases could follow this up with a separate PR.



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