Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-27565

[CX] Add DIV and MOD

    XMLWordPrintable

Details

    • CX Sprint 88, CX Sprint 89, CX Sprint 90, CX Sprint 91, CX Sprint 92, CX Sprint 93, CX Sprint 100, CX Sprint 101

    Description

      Add DIV and MOD operators for division and modulus operations.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            Till Westmann/Dmitry Lychagin: I can see that these operators are working on cbas. I just tried the very basic checks

            5 % 5;
            5 / 5;

            Are we doing something additional here?

            ritesh.agarwal Ritesh Agarwal added a comment - Till Westmann / Dmitry Lychagin : I can see that these operators are working on cbas. I just tried the very basic checks 5 % 5; 5 / 5; Are we doing something additional here?

            We want to add DIV as an integer division (as opposed to "/", with returns fractional values) and MOD as a consistent syntactic alternative to "%".

            till Till Westmann added a comment - We want to add DIV as an integer division (as opposed to "/", with returns fractional values) and MOD as a consistent syntactic alternative to "%".

            Moving to Alice - not critical as "/" and "%" work,.

            till Till Westmann added a comment - Moving to Alice - not critical as "/" and "%" work,.

            We should also remove IDIV from the grammar (it's not currently implemented, only parsed).

            dmitry.lychagin Dmitry Lychagin (Inactive) added a comment - We should also remove IDIV from the grammar (it's not currently implemented, only parsed).
            dmitry.lychagin Dmitry Lychagin (Inactive) added a comment - Open source tracking issue: https://issues.apache.org/jira/browse/ASTERIXDB-2378

            People

              tanzeem.ahmed Tanzeem Ahmed (Inactive)
              till Till Westmann
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty