@@ -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
535535func 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
553553func 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
571571func 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
593593func 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
933933func 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
982982func 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
987987func 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
992992func PathStrIndex (str string ) int {
993993 return len (strings .Split (str , PAR_GO_PATH_DELIMITER ))
994994}
0 commit comments