| 1 |
From: Simon Josefsson <[email protected]> |
| 2 |
Date: Tue, 11 Feb 2025 19:50:18 +0100 |
| 3 |
Subject: [PATCH] Fix Apache Arrow namespace |
| 4 |
Forwarded: not-needed |
| 5 |
|
| 6 |
diff --git a/dense_compat.go b/dense_compat.go |
| 7 |
index dcbefa2..d55b672 100644 |
| 8 |
--- a/dense_compat.go |
| 9 |
+++ b/dense_compat.go |
| 10 |
@@ -8,10 +8,10 @@ import ( |
| 11 |
"math/cmplx" |
| 12 |
"reflect" |
| 13 |
|
| 14 |
- arrow "github.com/apache/arrow/go/arrow" |
| 15 |
- arrowArray "github.com/apache/arrow/go/arrow/array" |
| 16 |
- "github.com/apache/arrow/go/arrow/bitutil" |
| 17 |
- arrowTensor "github.com/apache/arrow/go/arrow/tensor" |
| 18 |
+ arrow "github.com/apache/arrow-go/v18/arrow" |
| 19 |
+ arrowArray "github.com/apache/arrow-go/v18/arrow/array" |
| 20 |
+ "github.com/apache/arrow-go/v18/arrow/bitutil" |
| 21 |
+ arrowTensor "github.com/apache/arrow-go/v18/arrow/tensor" |
| 22 |
"github.com/chewxy/math32" |
| 23 |
"github.com/pkg/errors" |
| 24 |
"gonum.org/v1/gonum/mat" |
| 25 |
diff --git a/dense_compat_test.go b/dense_compat_test.go |
| 26 |
index c641203..08755dc 100644 |
| 27 |
--- a/dense_compat_test.go |
| 28 |
+++ b/dense_compat_test.go |
| 29 |
@@ -5,10 +5,10 @@ package tensor |
| 30 |
import ( |
| 31 |
"testing" |
| 32 |
|
| 33 |
- arrow "github.com/apache/arrow/go/arrow" |
| 34 |
- arrowArray "github.com/apache/arrow/go/arrow/array" |
| 35 |
- "github.com/apache/arrow/go/arrow/memory" |
| 36 |
- arrowTensor "github.com/apache/arrow/go/arrow/tensor" |
| 37 |
+ arrow "github.com/apache/arrow-go/v18/arrow" |
| 38 |
+ arrowArray "github.com/apache/arrow-go/v18/arrow/array" |
| 39 |
+ "github.com/apache/arrow-go/v18/arrow/memory" |
| 40 |
+ arrowTensor "github.com/apache/arrow-go/v18/arrow/tensor" |
| 41 |
"github.com/stretchr/testify/assert" |
| 42 |
"gonum.org/v1/gonum/mat" |
| 43 |
) |
| 44 |
diff --git a/example_dense_compat_test.go b/example_dense_compat_test.go |
| 45 |
index 201a3d6..17943bb 100644 |
| 46 |
--- a/example_dense_compat_test.go |
| 47 |
+++ b/example_dense_compat_test.go |
| 48 |
@@ -3,8 +3,8 @@ package tensor_test |
| 49 |
import ( |
| 50 |
"fmt" |
| 51 |
|
| 52 |
- "github.com/apache/arrow/go/arrow/array" |
| 53 |
- "github.com/apache/arrow/go/arrow/memory" |
| 54 |
+ "github.com/apache/arrow-go/v18/arrow/array" |
| 55 |
+ "github.com/apache/arrow-go/v18/arrow/memory" |
| 56 |
"gorgonia.org/tensor" |
| 57 |
) |
| 58 |
|
| 59 |
diff --git a/genlib2/dense_compat.go b/genlib2/dense_compat.go |
| 60 |
index e3b5b52..83b89f9 100644 |
| 61 |
--- a/genlib2/dense_compat.go |
| 62 |
+++ b/genlib2/dense_compat.go |
| 63 |
@@ -6,10 +6,10 @@ import ( |
| 64 |
) |
| 65 |
|
| 66 |
const importsArrowRaw = `import ( |
| 67 |
- arrowArray "github.com/apache/arrow/go/arrow/array" |
| 68 |
- "github.com/apache/arrow/go/arrow/bitutil" |
| 69 |
- arrowTensor "github.com/apache/arrow/go/arrow/tensor" |
| 70 |
- arrow "github.com/apache/arrow/go/arrow" |
| 71 |
+ arrowArray "github.com/apache/arrow-go/v18/arrow/array" |
| 72 |
+ "github.com/apache/arrow-go/v18/arrow/bitutil" |
| 73 |
+ arrowTensor "github.com/apache/arrow-go/v18/arrow/tensor" |
| 74 |
+ arrow "github.com/apache/arrow-go/v18/arrow" |
| 75 |
) |
| 76 |
` |
| 77 |
|