Skip to content

Commit a60aec2

Browse files
committed
REVERT: must change the package so that I can go get this for now. This commit will be reverted
1 parent 5f74d27 commit a60aec2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+405
-405
lines changed

common/common.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111

1212
"github.com/apache/arrow/go/arrow"
1313
"github.com/apache/arrow/go/arrow/array"
14-
"github.com/xitongsys/parquet-go/parquet"
15-
"github.com/xitongsys/parquet-go/types"
14+
"github.com/shlomi-dr/parquet-go/parquet"
15+
"github.com/shlomi-dr/parquet-go/types"
1616
)
1717

1818
// `parquet:"name=Name, type=FIXED_LEN_BYTE_ARRAY, length=12"`
@@ -531,7 +531,7 @@ func DeepCopy(src, dst interface{}) {
531531
return
532532
}
533533

534-
//Get key tag map for map
534+
// Get key tag map for map
535535
func GetKeyTagMap(src *Tag) *Tag {
536536
res := NewTag()
537537
res.InName = "Key"
@@ -549,7 +549,7 @@ func GetKeyTagMap(src *Tag) *Tag {
549549
return res
550550
}
551551

552-
//Get value tag map for map
552+
// Get value tag map for map
553553
func GetValueTagMap(src *Tag) *Tag {
554554
res := NewTag()
555555
res.InName = "Value"
@@ -567,7 +567,7 @@ func GetValueTagMap(src *Tag) *Tag {
567567
return res
568568
}
569569

570-
//Convert string to a golang variable name
570+
// Convert string to a golang variable name
571571
func StringToVariableName(str string) string {
572572
ln := len(str)
573573
if ln <= 0 {
@@ -589,7 +589,7 @@ func StringToVariableName(str string) string {
589589
return name
590590
}
591591

592-
//Convert the first letter of a string to uppercase
592+
// Convert the first letter of a string to uppercase
593593
func HeadToUpper(str string) string {
594594
ln := len(str)
595595
if ln <= 0 {
@@ -600,7 +600,7 @@ func HeadToUpper(str string) string {
600600
if (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') {
601601
return strings.ToUpper(str[0:1]) + str[1:]
602602
}
603-
//handle non-alpha prefix such as "_"
603+
// handle non-alpha prefix such as "_"
604604
return "PARGO_PREFIX_" + str
605605
}
606606

@@ -929,7 +929,7 @@ func (table decimalStringFuncTable) MinMaxSize(minVal interface{}, maxVal interf
929929
return Min(table, minVal, val), Max(table, maxVal, val), int32(len(val.(string)))
930930
}
931931

932-
//Get the size of a parquet value
932+
// Get the size of a parquet value
933933
func SizeOf(val reflect.Value) int64 {
934934
var size int64
935935
switch val.Type().Kind() {
@@ -978,17 +978,17 @@ func ReformPathStr(pathStr string) string {
978978
return strings.ReplaceAll(pathStr, ".", "\x01")
979979
}
980980

981-
//Convert path slice to string
981+
// Convert path slice to string
982982
func PathToStr(path []string) string {
983983
return strings.Join(path, PAR_GO_PATH_DELIMITER)
984984
}
985985

986-
//Convert string to path slice
986+
// Convert string to path slice
987987
func StrToPath(str string) []string {
988988
return strings.Split(str, PAR_GO_PATH_DELIMITER)
989989
}
990990

991-
//Get the pathStr index in a path
991+
// Get the pathStr index in a path
992992
func PathStrIndex(str string) int {
993993
return len(strings.Split(str, PAR_GO_PATH_DELIMITER))
994994
}

common/common_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"reflect"
88
"testing"
99

10-
"github.com/xitongsys/parquet-go/parquet"
11-
. "github.com/xitongsys/parquet-go/types"
10+
"github.com/shlomi-dr/parquet-go/parquet"
11+
. "github.com/shlomi-dr/parquet-go/types"
1212
)
1313

1414
func TestHeadToUpper(t *testing.T) {

compress/compress.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package compress
22

33
import (
44
"fmt"
5-
"github.com/xitongsys/parquet-go/parquet"
5+
"github.com/shlomi-dr/parquet-go/parquet"
66
)
77

88
type Compressor struct {

compress/default.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package compress
22

3-
import "github.com/xitongsys/parquet-go/parquet"
3+
import "github.com/shlomi-dr/parquet-go/parquet"
44

55
func init() {
66
compressors[parquet.CompressionCodec_UNCOMPRESSED] = &Compressor{

compress/gzip.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package compress
66
import (
77
"bytes"
88
"github.com/klauspost/compress/gzip"
9-
"github.com/xitongsys/parquet-go/parquet"
9+
"github.com/shlomi-dr/parquet-go/parquet"
1010
"io/ioutil"
1111
"sync"
1212
)

compress/gzip_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package compress
22

33
import (
44
"bytes"
5-
"github.com/xitongsys/parquet-go/parquet"
5+
"github.com/shlomi-dr/parquet-go/parquet"
66
"testing"
77
)
88

compress/lz4.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"sync"
1010

1111
"github.com/pierrec/lz4/v4"
12-
"github.com/xitongsys/parquet-go/parquet"
12+
"github.com/shlomi-dr/parquet-go/parquet"
1313
)
1414

1515
func init() {

compress/snappy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package compress
55

66
import (
77
"github.com/golang/snappy"
8-
"github.com/xitongsys/parquet-go/parquet"
8+
"github.com/shlomi-dr/parquet-go/parquet"
99
)
1010

1111
func init() {

compress/zstd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package compress
55

66
import (
77
"github.com/klauspost/compress/zstd"
8-
"github.com/xitongsys/parquet-go/parquet"
8+
"github.com/shlomi-dr/parquet-go/parquet"
99
)
1010

1111
func init() {

encoding/encodingread.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"io"
88
"math"
99

10-
"github.com/xitongsys/parquet-go/parquet"
10+
"github.com/shlomi-dr/parquet-go/parquet"
1111
)
1212

1313
func ReadPlain(bytesReader *bytes.Reader, dataType parquet.Type, cnt uint64, bitWidth uint64) ([]interface{}, error) {
@@ -142,7 +142,7 @@ func ReadUnsignedVarInt(bytesReader *bytes.Reader) (uint64, error) {
142142
return res, err
143143
}
144144

145-
//RLE return res is []INT64
145+
// RLE return res is []INT64
146146
func ReadRLE(bytesReader *bytes.Reader, header uint64, bitWidth uint64) ([]interface{}, error) {
147147
var err error
148148
var res []interface{}
@@ -166,7 +166,7 @@ func ReadRLE(bytesReader *bytes.Reader, header uint64, bitWidth uint64) ([]inter
166166
return res, err
167167
}
168168

169-
//return res is []INT64
169+
// return res is []INT64
170170
func ReadBitPacked(bytesReader *bytes.Reader, header uint64, bitWidth uint64) ([]interface{}, error) {
171171
var err error
172172
numGroup := (header >> 1)
@@ -227,7 +227,7 @@ func ReadBitPacked(bytesReader *bytes.Reader, header uint64, bitWidth uint64) ([
227227
return res, err
228228
}
229229

230-
//res is INT64
230+
// res is INT64
231231
func ReadRLEBitPackedHybrid(bytesReader *bytes.Reader, bitWidth uint64, length uint64) ([]interface{}, error) {
232232
res := make([]interface{}, 0)
233233
if length <= 0 {
@@ -325,7 +325,7 @@ func ReadDeltaBinaryPackedINT32(bytesReader *bytes.Reader) ([]interface{}, error
325325
return res[:numValues], err
326326
}
327327

328-
//res is INT64
328+
// res is INT64
329329
func ReadDeltaBinaryPackedINT64(bytesReader *bytes.Reader) ([]interface{}, error) {
330330
var (
331331
err error

0 commit comments

Comments
 (0)