Skip to content

Commit 945bcf6

Browse files
authored
MINOR: [Go][CI] Shift test data to arrow-testing (#14706)
Authored-by: Matt Topol <zotthewizard@gmail.com> Signed-off-by: Antoine Pitrou <antoine@python.org>
1 parent 767f203 commit 945bcf6

File tree

4 files changed

+11
-68614
lines changed

4 files changed

+11
-68614
lines changed

ci/scripts/go_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ fi
8181
popd
8282

8383
export PARQUET_TEST_DATA=${1}/cpp/submodules/parquet-testing/data
84-
84+
export ARROW_TEST_DATA=${1}/testing/data
8585
pushd ${source_dir}/parquet
8686

8787
go test $testargs -tags assert ./...

go/parquet/internal/encoding/encoding_test.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import (
2020
"bufio"
2121
"fmt"
2222
"os"
23+
"path"
2324
"reflect"
2425
"strconv"
2526
"testing"
@@ -688,8 +689,14 @@ func TestDeltaByteArrayEncoding(t *testing.T) {
688689
}
689690

690691
func TestDeltaBitPacking(t *testing.T) {
691-
require.FileExists(t, "testdata/timestamp.data")
692-
f, err := os.Open("testdata/timestamp.data")
692+
datadir := os.Getenv("ARROW_TEST_DATA")
693+
if datadir == "" {
694+
return
695+
}
696+
697+
fname := path.Join(datadir, "parquet/timestamp.data")
698+
require.FileExists(t, fname)
699+
f, err := os.Open(fname)
693700
if err != nil {
694701
t.Fatal(err)
695702
}

0 commit comments

Comments
 (0)