Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-13937

[C++][Compute] Add explicit output values to sign function and fix unary type checks

    XMLWordPrintableJSON

Details

    Description

      The sign function implementation for unsigned integers returns the result of a boolean expression because when casted to an integer it corresponds to the expected value (0 or 1). To make the function more clear, we should be explicit with the return values similar to the other sign kernels.

      Attachments

        Issue Links

          Activity

            People

              edponce Eduardo Ponce
              edponce Eduardo Ponce
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m