rkondakov commented on a change in pull request #7813:
URL: https://github.com/apache/ignite/pull/7813#discussion_r427246547



##########
File path: 
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/metadata/IgniteMdDistribution.java
##########
@@ -73,7 +76,14 @@ public IgniteDistribution distribution(IgniteRel rel, 
RelMetadataQuery mq) {
      * See {@link IgniteMdDistribution#distribution(RelNode, RelMetadataQuery)}
      */
     public IgniteDistribution distribution(TableScan rel, RelMetadataQuery mq) 
{
-        return rel.getTable().unwrap(DistributedTable.class).distribution();
+        return rel.getTable().unwrap(IgniteTable.class).distribution();

Review comment:
       I think it is a redundant entity. We need to keep our API clean.




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


Reply via email to