Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-3732

Implement bit functions and operators

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: In Progress
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.21.0
    • Fix Version/s: 1.22.0
    • Component/s: core
    • Labels:
      None

      Description

      Bit function is non-standard operators, but all db has implemented, such as mysql, postgresql.

      Calcite has implemented BIT_AND, BIT_OR in CALCITE-2770, BIT_XOR in CALCITE-3591. BIT_COUNT is in progress CALCITE-3697, BIT_NOT(~) is in progress CALCITE-3592.

      So I think we should also implement Bitwise AND(&), Right shift(>>), Left shift(<<), Bitwise XOR(^), Bitwise OR(|). And data types support tinyint, smallint, int, bigint like before.

       

      Refence: https://dev.mysql.com/doc/refman/8.0/en/bit-functions.html#operator_bitwise-invert 

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hailong wang hailong wang
                Reporter:
                hailong wang hailong wang
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h