diff --git a/pkg/s3select/internal/parquet-go/reader_test.go b/pkg/s3select/internal/parquet-go/reader_test.go index 0409bf2d2..5f0221d92 100644 --- a/pkg/s3select/internal/parquet-go/reader_test.go +++ b/pkg/s3select/internal/parquet-go/reader_test.go @@ -39,7 +39,7 @@ func getReader(name string, offset int64, length int64) (io.ReadCloser, error) { offset = fi.Size() + offset } - if _, err = file.Seek(offset, os.SEEK_SET); err != nil { + if _, err = file.Seek(offset, io.SeekStart); err != nil { return nil, err } diff --git a/pkg/s3select/internal/parquet-go/tools/parquet2csv/parquet2csv.go b/pkg/s3select/internal/parquet-go/tools/parquet2csv/parquet2csv.go index dca67b425..771e2dec5 100644 --- a/pkg/s3select/internal/parquet-go/tools/parquet2csv/parquet2csv.go +++ b/pkg/s3select/internal/parquet-go/tools/parquet2csv/parquet2csv.go @@ -43,7 +43,7 @@ func getReader(name string, offset int64, length int64) (io.ReadCloser, error) { offset = fi.Size() + offset } - if _, err = file.Seek(offset, os.SEEK_SET); err != nil { + if _, err = file.Seek(offset, io.SeekStart); err != nil { return nil, err } diff --git a/pkg/s3select/internal/parquet-go/tools/parquet2json/parquet2json.go b/pkg/s3select/internal/parquet-go/tools/parquet2json/parquet2json.go index c495d8987..ef99614c6 100644 --- a/pkg/s3select/internal/parquet-go/tools/parquet2json/parquet2json.go +++ b/pkg/s3select/internal/parquet-go/tools/parquet2json/parquet2json.go @@ -43,7 +43,7 @@ func getReader(name string, offset int64, length int64) (io.ReadCloser, error) { offset = fi.Size() + offset } - if _, err = file.Seek(offset, os.SEEK_SET); err != nil { + if _, err = file.Seek(offset, io.SeekStart); err != nil { return nil, err }