os.SEEK_SET is deprecated,use io.SeekStart. (#10563)

master
飞雪无情 4 years ago committed by GitHub
parent b880796aef
commit 4de88e87bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pkg/s3select/internal/parquet-go/reader_test.go
  2. 2
      pkg/s3select/internal/parquet-go/tools/parquet2csv/parquet2csv.go
  3. 2
      pkg/s3select/internal/parquet-go/tools/parquet2json/parquet2json.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
}

@ -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
}

@ -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
}

Loading…
Cancel
Save