[ 
https://issues.apache.org/jira/browse/PHOENIX-4843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16576927#comment-16576927
 ] 

Thomas D'Silva commented on PHOENIX-4843:
-----------------------------------------

I attached a v3 patch that only creates a copy of the byte[] if we need to 
invert the bytes. The query was failing because in {{BaseQueryPlan}} we  log 
the scan which ends up calling the toString() of the filters.
{code}
if (LOG.isDebugEnabled()) {
        LOG.debug(LogUtil.addCustomAnnotations("Scan ready for iteration: " + 
scan, connection));
}
{code}



> InListExpression toString() converts the values in the list to ASC sort order 
> always
> ------------------------------------------------------------------------------------
>
>                 Key: PHOENIX-4843
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-4843
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Thomas D'Silva
>            Assignee: Thomas D'Silva
>            Priority: Major
>             Fix For: 4.15.0, 5.1.0
>
>         Attachments: PHOENIX-4843-v2.patch, PHOENIX-4843-v3.patch, 
> PHOENIX-4843.patch
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to