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

Julian Hyde edited comment on CALCITE-3697 at 8/22/24 7:42 PM:
---------------------------------------------------------------

Can you amend the description with a simple example of its operation? (Links go 
stale.)

Include some key corner cases, e.g. does BITCOUNT(-1) return 32 or 64? Does 
BITCOUNT(1.5) return 1 (same as BITCOUNT(1)) or 2 (same as BITCOUNT(3), which 
is the shifted binary) or 4 (same as BITCOUNT(15), which is the shifted 
decimal)?


was (Author: julianhyde):
Can you amend the description with a simple example of its operation? (Links go 
stale.)

Include some key corner cases, e.g. does BITCOUNT(-1) return 32 or 64? Does 
BITCOUNT(1.5) return 1 or 2?

> Implement BITCOUNT scalar function
> ----------------------------------
>
>                 Key: CALCITE-3697
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3697
>             Project: Calcite
>          Issue Type: Sub-task
>            Reporter: Forward Xu
>            Assignee: Forward Xu
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> Implement bit_count function
> MySQL BIT_COUNT: 
> https://dev.mysql.com/doc/refman/8.4/en/bit-functions.html#bit-operations-bit-count



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to