[ 
https://issues.apache.org/jira/browse/CALCITE-632?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jesus Camacho Rodriguez updated CALCITE-632:
--------------------------------------------
    Description: By default, 1 is returned. However, when none of the classes 
is a super class of the other one, this could lead to inconsistent order as the 
Comparable will return the same result e.g. compare(Exchange, Sort) = 1 and 
compare(Sort, Exchange) = 1.  (was: By default, 1 is returned. But the default 
case is that bot classes are not related, and in that case, in relation to 
sorting, they should be equal, and thus the return value should be 0.)

> Sort order returned by SUPERCLASS_COMPARATOR in ReflectiveRelMetadataProvider 
> is inconsistent
> ---------------------------------------------------------------------------------------------
>
>                 Key: CALCITE-632
>                 URL: https://issues.apache.org/jira/browse/CALCITE-632
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Jesus Camacho Rodriguez
>            Assignee: Jesus Camacho Rodriguez
>
> By default, 1 is returned. However, when none of the classes is a super class 
> of the other one, this could lead to inconsistent order as the Comparable 
> will return the same result e.g. compare(Exchange, Sort) = 1 and 
> compare(Sort, Exchange) = 1.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to