You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (Jira)" <ji...@apache.org> on 2020/01/08 04:44:00 UTC

[jira] [Resolved] (CALCITE-3714) BitString.createFromBytes reverses order of the bits in each byte

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

Julian Hyde resolved CALCITE-3714.
----------------------------------
    Fix Version/s: 1.22.0
       Resolution: Fixed

Fixed in [8555e1bc|https://github.com/apache/calcite/commit/8555e1bc14f0e94a2f1c1e25d56c1a04341e432e].

> BitString.createFromBytes reverses order of the bits in each byte
> -----------------------------------------------------------------
>
>                 Key: CALCITE-3714
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3714
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>            Reporter: Andrew Pilloud
>            Assignee: Julian Hyde
>            Priority: Trivial
>             Fix For: 1.22.0
>
>
> BitString.createFromBytes reverses the order of the bits in each byte. (Passing in 'a' I expect 01100001 but get 10000110.)
> BitString.createFromHexString works as expected, and appears to be the one everyone is using. The "fix" might be to just delete the broken method.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)