Skip to content

Commit

Permalink
apacheGH-34044: [Go] Fix build with noasm tag (apache#34045)
Browse files Browse the repository at this point in the history
Fix the following build failure.

    $ go build -tags noasm ./...
    # github.com/apache/arrow/go/v12/arrow/compute/internal/kernels
    arrow/compute/internal/kernels/basic_arithmetic_noasm.go:27:9: undefined: getGoArithmeticOpFloatingSameType
    arrow/compute/internal/kernels/basic_arithmetic_noasm.go:35:9: undefined: getGoArithmeticFixedIntOut

Closes apache#34044.

Authored-by: Noah Treuhaft <[email protected]>
Signed-off-by: Matt Topol <[email protected]>
  • Loading branch information
nwt authored Feb 6, 2023
1 parent 2599b8b commit 6294a73
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions go/arrow/compute/internal/kernels/basic_arithmetic_noasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,9 @@ import (
)

func getArithmeticOpFloating[InT, OutT constraints.Float](op ArithmeticOp) exec.ArrayKernelExec {
return getGoArithmeticOpFloatingSameType[InT, OutT](op)
return getGoArithmeticOpFloating[InT, OutT](op)
}

func getArithmeticOpIntegral[InT, OutT exec.UintTypes | exec.IntTypes](op ArithmeticOp) exec.ArrayKernelExec {
return getGoArithmeticOpIntegral[InT, OutT](op)
}

func getArithmeticUnaryFixedIntOut[InT exec.NumericTypes, OutT exec.IntTypes](op ArithmeticOp) exec.ArrayKernelExec {
return getGoArithmeticFixedIntOut[InT, OutT](op)
}

0 comments on commit 6294a73

Please sign in to comment.