Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
xitongsys committed Nov 30, 2020
1 parent a5e3176 commit 67060d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ func NewSchemaElementFromTagMap(info *Tag) *parquet.SchemaElement {
schema.Type = &t

} else {
panic(err)
panic("type " + info.Type + ": " + err.Error())
}

if ct, err := parquet.ConvertedTypeFromString(info.ConvertedType); err == nil {
Expand Down
6 changes: 3 additions & 3 deletions example/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ type TypeList struct {

Decimal1 int32 `parquet:"name=decimal1, type=INT32, convertedtype=DECIMAL, scale=2, precision=9"`
Decimal2 int64 `parquet:"name=decimal2, type=INT64, convertedtype=DECIMAL, scale=2, precision=18"`
Decimal3 string `parquet:"name=decimal3, type=FIXED_LENGTH_BYTE_ARRAY, convertedtype=DECIMAL, scale=2, precision=10, length=12"`
Decimal3 string `parquet:"name=decimal3, type=FIXED_LEN_BYTE_ARRAY, convertedtype=DECIMAL, scale=2, precision=10, length=12"`
Decimal4 string `parquet:"name=decimal4, type=BYTE_ARRAY, convertedtype=DECIMAL, scale=2, precision=20"`

Decimal5 int32 `parquet:"name=decimal5, type=INT32, convertedtype=DECIMAL, logicaltype=DECIMAL, logicaltype.precision=10, logicaltype.scale=2"`

Map map[string]int32 `parquet:"name=map, type=MAP, convertedtype=MAP, keytype=UTF8, valuetype=INT32"`
List []string `parquet:"name=list, type=MAP, convertedtype=LIST, valuetype=UTF8"`
Map map[string]int32 `parquet:"name=map, type=MAP, convertedtype=MAP, keytype=BYTE_ARRAY, keyconvertedtype=UTF8, valuetype=INT32"`
List []string `parquet:"name=list, type=MAP, convertedtype=LIST, valuetype=BYTE_ARRAY, valueconvertedtype=UTF8"`
Repeated []int32 `parquet:"name=repeated, type=INT32, repetitiontype=REPEATED"`
}

Expand Down

0 comments on commit 67060d8

Please sign in to comment.