matrixorigin / matrixone

Hyperconverged cloud-edge native database
https://docs.matrixorigin.cn/en
Apache License 2.0
1.76k stars 273 forks source link

[Feature Request]: Aggregate function bit_or() #1994

Closed dengn closed 2 years ago

dengn commented 2 years ago

Is there an existing issue for the same feature request?

Is your feature request related to a problem?

Describe the feature you'd like

  1. Similar to MySQL 8.0 in syntax.
  2. Function syntax

BIT_OR(expr) [over_clause]

Returns the bitwise OR of all bits in expr.
Both input parameters and output values are of type uint.

mysql> SELECT  MAKER, BIT_OR(PRICE) BITS
          FROM CARS GROUP BY MAKER

+---------------------------------------------------------+
|MAKER           BITS                                     |
+---------------------------------------------------------+
|CHRYSLER        62293                                    |
|FORD            16127                                    |
|HONDA           32766                                    |
+---------------------------------------------------------+

Describe implementation you've considered

Documentation, Adoption, Use Case, Migration Strategy

Additional information

NTH19 commented 2 years ago

/assign

dengn commented 2 years ago

/assign

ok. Please sign up for the event before being assigned: https://www.wjx.top/vm/Ys1rz1I.aspx

NTH19 commented 2 years ago

"I have finished Issue #1994" https://github.com/matrixorigin/matrixone/pull/2123

dengn commented 2 years ago

Feature implemented.