amoeba opened a new issue, #413:
URL: https://github.com/apache/arrow-go/issues/413

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   This assertion fails for me on my local macOS aarch64 machine against a very 
recent checkout:
   
   
https://github.com/apache/arrow-go/blob/2e570031ca8c8ffcb04ef98b6f6618e0905c0574/internal/utils/math_64bit_test.go#L31
   
   I tested with,
   
   ```text
   $ go test -race -tags assert ./...
   -- >8 -- 
   --- FAIL: TestMul_64bit (0.00s)
       math_64bit_test.go:31:
                Error Trace:    
/Users/bryce/src/apache/arrow-go/internal/utils/math_64bit_test.go:31
                Error:          "-2147483648" is not greater than "0"
                Test:           TestMul_64bit
   -- >8 -- 
   ```
   
   The line of code in the test seems to have platform-specific behavior, 
specifically what `int(math.Sqrt(math.MinInt64))`  evaluates to:
   
   - On macOS aarch64, `int(math.Sqrt(math.MinInt64))` = 0
   - In an amd64 VM, `int(math.Sqrt(math.MinInt64))` = -9223372036854775808
   
   ### Component(s)
   
   Other


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to